Marker
A marker on the map at a specific geographic location.
The marker returned by OpenMapView.addMarker is a live handle, as in the Maps SDK: setting a property redraws the map right away, and remove takes the marker off the map.
Parameters
The geographic location of the marker
Optional title text displayed when marker is clicked
Optional snippet text displayed below the title
Custom icon descriptor. If null, a default red marker icon will be used
Anchor point for the marker icon. Default (0.5f, 1.0f) means the marker is centered horizontally and anchored at the bottom
The point of the icon the info window points at, as fractions of its width and height. Default (0.5f, 0.0f) is the top center
Clockwise rotation of the icon around the anchor, in degrees: relative to the screen, or to north for a flat icon. Default is 0
Whether the icon lies flat on the map and turns with it when the camera has a bearing, instead of facing the screen. Default is false
Whether the marker is visible. Default is true
Opacity of the marker from 0.0 (transparent) to 1.0 (opaque). Default is 1.0
Whether the marker can be dragged. Default is false
Draw order. Markers with higher zIndex are drawn on top. Default is 0.0
Optional user data associated with the marker
Constructors
Properties
Functions
Returns a new marker with the given properties changed, not added to any map.
Hides the info window for this marker.
Sets the infoWindowAnchor from its two fractions, like setInfoWindowAnchor(float, float) of the Maps SDK.
Shows the info window for this marker.