fitBBox: Set Bounds of a Map Widget

View source: R/leaflet.R

fitBBoxR Documentation

Set Bounds of a Map Widget

Description

Helper function to set the bounds of a leaflet map widget.

Usage

fitBBox(map, bbox)

Arguments

map

a map widget object created from leaflet()

bbox

A vector c(lng1, lat1, lng2, lat2) specifying the bounding box coordinates

Value

The modified map widget.

Author(s)

Andrzej OleÅ› andrzej.oles@gmail.com


GIScience/openrouteservice-r documentation built on Feb. 11, 2025, 1:28 p.m.