Class eniro.maps.MarkerImage
Defined in: MarkerImage.js.
Constructor Attributes | Constructor Name and Description |
---|---|
eniro.maps.MarkerImage(url, size, origin, anchor, bubbleOffset, bubbleMargin)
Creates an image for use in a Marker.
|
Method Attributes | Method Name and Description |
---|---|
equals(other)
Compare this instance with another instance.
|
|
The anchor point in the image.
|
|
getSize()
Returns the marker size.
|
|
getUrl()
The URL of the image to use.
|
Event Attributes | Event Name and Description |
---|---|
loaded()
Image has loaded.
|
Class Detail
eniro.maps.MarkerImage(url, size, origin, anchor, bubbleOffset, bubbleMargin)
Creates an image for use in a Marker.
- Parameters:
- {string} url
- the url of the marker to use.
- {eniro.maps.Size} size
- the image size.
- {eniro.maps.Point} origin
- not used for now.
- {eniro.maps.Point} anchor
- how to anchor the image in relation to the map.
- bubbleOffset
- bubbleMargin
Method Detail
{boolean}
equals(other)
Compare this instance with another instance.
- Parameters:
- {eniro.maps.MarkerImage} other
- The instance to compare this instance to.
- Returns:
- {boolean} true If this instance is equal to the given one.
{eniro.maps.Point}
getAnchor()
The anchor point in the image. This will be offset on the map placement.
Will not be available before #event:loaded is fired.
- Returns:
- {eniro.maps.Point} the pixel offset from the map placement.
{eniro.maps.Size}
getSize()
Returns the marker size. Will not be available before #event:loaded is fired.
- Returns:
- {eniro.maps.Size} the size in pixels
{string}
getUrl()
The URL of the image to use.
- Returns:
- {string} the url of the image to use.
Event Detail
loaded()
Image has loaded.