Class: Marker

MobileAge.Layer.Marker(The, options)

Map-Marker-Component

Constructor

new Marker(The, options)

Class representing a single Map component.
Parameters:
Name Type Description
The Object map to add this layer to
options Object
Properties
Name Type Attributes Default Description
iconUrl String <optional>
Base64-encoded Mobile-Age Logo URI of the image used as marker.
iconWidth Number <optional>
57 Width of the icon.
iconHeight Number <optional>
57 Height of the icon.
zIndex Number <optional>
0 The z-Index of the marker to order it by importance.
alt String <optional>
'Marker' The alternative text in terms of accessibility.
clustered Boolean <optional>
true Wether the icons are clustered.
clusterIconUrl String <optional>
"" URI of the image used for the clusters (if not set, the iconUrl is used).
clusterIconWidth Number <optional>
0 Width of the image used for the clusters (if not set and not scaled, the iconWidth is used.)
clusterIconHeight Number <optional>
0 Height of the image used for the clusters (if not set and not scaled, the iconHeight is used)
clusterIconScaleFactor Number <optional>
0 Multiplication factor for the size of the cluster icon. Scales iconWidth and iconHeight. clusterIconWidth and clusterIconHeight are ignored.
clusterIconCss String <optional>
"" Custom CSS to be used on the cluster icons' div.
clusterShowNumber Boolean <optional>
true Wether the cluster icons display the number of clustered icons.
clusterNumberCss String <optional>
"" Custom CSS to be used on the number of clustered items.
dataLatLonMapping Object <optional>
0 JSON object to define a value-mapping (e.g. {'lat' : 'latitude', 'lon' : 'longitude').
templateInfoWindow String <optional>
"" HTML template for info-popups containing placeholders wrapped by <%%>.
Source:

Extends

Methods

(static) draw(data)

Draws a layer of markers of given data to the map
Parameters:
Name Type Description
data object requested data
Source:

(static) remove()

Removes this layer of markers from the map
Source: