MarkerInheritance: Shape > Marker The Marker class is used to show a marker on the map. The Marker class is based on the Shape class, and in order to add a marker on the map you should add the marker object to the map’s LayersManager object.
See on the examples page Use shapes -> Add external icon to map
Summary | Inheritance: Shape > Marker | | | | | | | | Returns the coordinate of the marker. | | Returns the direction of the marker. | | Returns the icon of the marker. | | Sets a new coordinate to the marker. | | Sets a new direction to the marker. | | Sets a new icon to the marker. |
MarkerMarker( | string id | | | Coordinate coordinate | | | Icon icon | | | string label | | | string hint | | | boolean isVisible | | | boolean isLabelVisible | | | int direction | | ) |
|
The Marker constructor. Parametersid | The id of the marker. | coordinate | The coordinate of the marker. | icon | The icon of the marker. | label | The label of the marker. | hint | The hint of the marker. | isVisible | Determine if the marker is visible. | isLabelVisible | Determine if the label of the marker is visible. | direction | The direction of the marker. |
getCoordinateReturns the coordinate of the marker. ReturnsThe coordinate of the marker. See AlsosetCoordinate
getDirectionReturns the direction of the marker. ReturnsThe direction of the marker. See AlsosetDirection
getIconReturns the icon of the marker. ReturnsThe icon of the marker. See AlsosetIcon
setCoordinateSets a new coordinate to the marker. Parameterscoordinate | A new coordinate to the marker. |
See AlsogetCoordinate
setDirectionsetDirection(string direction) |
|
Sets a new direction to the marker. Parametersdirection | A new direction to the marker. |
See AlsogetDirection
setIconSets a new icon to the marker. Parametersicon | A new icon to the marker. |
See AlsogetIcon
|