SetMapView: Setting the desired view for a map.

Description Usage Arguments Examples

Description

Sets the desired view for a map. A list of pre-defined views is available: 'Paris' and 'France'. The view is set using the latitudes and longitudes bounds.

Usage

1
SetMapView(map,mapView)

Arguments

map

a map

mapView

the desired view. Are available: 'Paris' ; 'France'

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# Test data frame
# testDF <- data.frame(lat=c(48.875403,48.904567,48.846674),
#                      lng=c(2.317795,2.255450,2.382460))

# Create a map
# map <- leaflet(testDF)

# Set of view on Paris
# SetMapView(map,'Paris')

# Set of view on France
# SetMapView(map,'France')

Blitzy29/R.Maps documentation built on May 6, 2019, 7:57 a.m.