zoomTo method

MapboxMap zoomTo(
  1. num zoom, [
  2. AnimationOptions? options,
  3. dynamic eventData
])

Zooms the map to the specified zoom level, with an animated transition.

@memberof MapboxMap# @param zoom The zoom level to transition to. @param options @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

Implementation

MapboxMap zoomTo(num zoom, [AnimationOptions? options, dynamic eventData]) =>
    MapboxMap.fromJsObject(jsObject.zoomTo(zoom));