Class: IWMarkerFactory

IWMarkerFactory

A class to create markers to display on the map. Size, color, type and label of the marker can be set with properties.

new IWMarkerFactory()

Singleton constructor

Methods


createMarker(map, coordinate, properties)

Creates a marker. The style of the marker can be defined with these properties:
  • style: the style of the marker ("marker" (default), "marker-circle", "marker-start", "marker-destination")
  • markerColor: a CSS color definition (default is the accent color of the map)
  • height: height of the marker (in px; default is 45)
  • label: a label to display on the marker (a letter or number; default is none)
Parameters:
Name Type Description
map IWMap the map
coordinate markerColor the coordinate for the marker
properties object the properties as defined above
Returns:
the marker
Type
IWMarker