setView method

LeafletMap setView(
  1. LatLng center,
  2. double zoom, [
  3. ZoomPanOptions? options
])

Sets the view of the map (geographical center and zoom) with the given animation options.

Implementation

external LeafletMap setView(LatLng center, double zoom,
    [ZoomPanOptions? options]);