Class Index | File Index

Classes


Class eniro.maps.MarkerImage


Defined in: MarkerImage.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
eniro.maps.MarkerImage(url, size, origin, anchor, bubbleOffset, bubbleMargin)
Creates an image for use in a Marker.
Method Summary
Method Attributes Method Name and Description
 
equals(other)
Compare this instance with another instance.
 
The anchor point in the image.
 
Returns the marker size.
 
The URL of the image to use.
Event Summary
Event Attributes Event Name and Description
 
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.

Documentation generated by JsDoc Toolkit 2.3.2 on Mon Mar 30 2020 12:10:03 GMT+0200 (CEST)