fit_bounds {mapboxer}R Documentation

Fit the map to a bounding box

Description

Fit the map to a bounding box

Usage

fit_bounds(map, bounds, ...)

Arguments

map

A mapboxer object.

bounds

The bounding box as a vector in [west, south, east, north] order or a bbox object.

...

Optional arguments, see https://docs.mapbox.com/mapbox-gl-js/api/map/#map#fitbounds.


[Package mapboxer version 0.4.0 Index]