Zoom Control#

Example#

from ipyleaflet import Map, ZoomControl

m = Map(zoom=5, center=[51.64, -76.52], zoom_control=False)  # Do not automatically create a ZoomControl
m.add_control(ZoomControl(position='topright'))

m

Attributes#

class ipyleaflet.leaflet.ZoomControl(**kwargs)[source]#

ZoomControl class, with Control as parent class.

A control which contains buttons for zooming in/out the Map.

zoom_in_text#

Text to put in the zoom-in button.

Type

str, default ‘+’

zoom_in_title#

Title to put in the zoom-in button, this is shown when the mouse is over the button.

Type

str, default ‘Zoom in’

zoom_out_text#

Text to put in the zoom-out button.

Type

str, default ‘-’

zoom_out_title#

Title to put in the zoom-out button, this is shown when the mouse is over the button.

Type

str, default ‘Zoom out’