Members
Instance member functions of the Marker object.
getId
Parameters
not required
Returns
Example
Returns
setLngLat
Parameters
markerID
The ID that created the marker.
String
coord
Latitude and longitude {lat, lng}.
Object
Returns
Example
getLngLat
Parameters
markerID
The ID that generated the marker.
String
Returns
coord
marker's location {longitude, latitude}.
Object
Example
setMessage
Parameters
id
The ID that generated the marker.
String
message
The message to show on the marker.
HTML
Returns
Example
setZIndex
Parameter
markerID
The ID that generated the marker.
Boolean
index
The z-index CSS property sets the z-order of a positioned element and its descendants or flex items.
Numeric
Returns
Example
getZIndex
Parameters
markerID
The ID that generated the marker.
String
Returns
Example
setOffset
Parameters
markerID
The ID that generated the marker.
String
offset
Move the selected element to a specific location.
Numeric Array
Returns
Example
getOffset
Parameters
markerID
The ID that generated the marker.
String
Returns
Example
setDraggable
Parameters
markerID
The ID that generated the marker.
String
bool
Whether to move by clicking on the marker.
boolean
Returns
Example
isDraggable
Parameters
markerID
The ID that generated the marker.
String
Returns
Example
setPopupOffset
Parameters
markerID
The ID that generated the marker.
String
offset
Move the selected element to a specific location.
Numeric Array
Returns
Example
getPopupOffset
Parameters
markerID
The ID that generated the marker.
String
Returns
Example
togglePopup
Parameters
Returns
Example
Last updated