id ()
Class:
Marker
Returns the data-id
attribute of the marker, which is only available if originally passed as an option to that marker.
Returns: String
Example
// assuming you already have access to `marker` as a Marker object
marker.id() // will return something like 'my-marker'