Appearance
Control.Zoom
A basic zoom control with two buttons (zoom in and zoom out). It is put on the map by default unless you set its zoomControl option to false. Extends Control.
Control options
| Option | Type | Default | Description |
|---|---|---|---|
zoomControl | Boolean | true | Whether a zoom control is added to the map by default. |
Options
| Option | Type | Default | Description |
|---|---|---|---|
position | String | 'topleft' | The position of the control (one of the map corners). Possible values are 'topleft', |
zoomInText | String | '<span | The text set on the 'zoom in' button. |
zoomInTitle | String | 'Zoom | The title set on the 'zoom in' button. |
zoomOutText | String | '<span | The text set on the 'zoom out' button. |
zoomOutTitle | String | 'Zoom | The title set on the 'zoom out' button. |
