MarkerOptions
Properties
String to be shown in the attribution control, e.g. "© OpenStreetMap contributors". It describes the layer data and is often a legal obligation towards copyright holders and tile providers.
When true, the map will pan whenever the marker is focused (via e.g. pressing tab on the keyboard) to ensure the marker is visible within the map's bounds.
Distance (in pixels to the left/right and to the top/bottom) of the map edge to start panning the map.
Number of pixels the map should pan by.
Icon instance to use for rendering the marker. See Icon documentation for details on how to customize the marker icon. If not specified, a common instance of Icon.Default is used.
If true, the popup/tooltip will listen to the mouse events.
By default, the layer will be added to the map's overlay pane. Overriding this option will cause the layer to be placed on another pane by default.
The z-index offset used for the riseOnHover
feature.
If true
, the marker will get on top of others when you hover the mouse over it.
Map pane where the markers shadow will be added.
By default, marker images zIndex is set automatically based on its latitude. Use this option if you want to put the marker on top of all others (or below), specifying a high value like 1000 (or high negative value, respectively).