setZoom method

MapboxMap setZoom(
  1. num zoom, [
  2. dynamic eventData
])

Sets the map's zoom level. Equivalent to jumpTo({zoom: zoom}).

@memberof MapboxMap# @param zoom The zoom level to set (0-20). @param eventData Additional properties to be added to event objects of events triggered by this method. @fires movestart @fires zoomstart @fires move @fires zoom @fires moveend @fires zoomend @returns {MapboxMap} this @example // zoom the map to 5 map.setZoom(5);

Implementation

MapboxMap setZoom(num zoom, [dynamic eventData]) =>
    MapboxMap.fromJsObject(jsObject.setZoom(zoom));