Marker dragging handler (by both mouse and touch).
Binds a popup with a particular HTML content to a click on this marker. You can also open the bound popup with the Marker openPopup method.
Binds a popup with a particular HTML content to a click on this marker. You can also open the bound popup with the Marker openPopup method.
Binds a popup with a particular HTML content to a click on this marker. You can also open the bound popup with the Marker openPopup method.
Closes the bound popup of the marker if it's opened.
Returns the current geographical position of the marker.
Returns the popup previously bound by the bindPopup method.
Should contain code that creates DOM elements for the overlay, adds them to map panes where they should belong and puts listeners on relevant map events. Called on map.addLayer(layer).
Should contain all clean up code that removes the overlay's elements from the DOM and removes listeners previously added in onAdd. Called on map.removeLayer(layer).
Opens the popup previously bound by the bindPopup method.
Changes the marker icon.
Changes the opacity of the marker.
Sets an HTML content of the popup of this marker.
Sets an HTML content of the popup of this marker.
Changes the zIndex offset of the marker.
Returns a GeoJSON representation of the marker (GeoJSON Point Feature).
Returns a GeoJSON representation of the path .
Toggles the popup previously bound by the bindPopup method.
Unbinds the popup previously bound to the marker with bindPopup.
Updates the marker position, useful if coordinates of its latLng object were changed directly.
You can also use the following shortcut when you just need to make one additional method call.
You use L.Class.extend to define new classes, but you can use the same method on any class to inherit from it.
Instantiates a Marker object given a geographical point and optionally an options object.