Skip to contents

Specification for an interactive (leaflet) map

Usage

morie_spatial_leaflet_spec(x)

Arguments

x

A morie_spatial.

Value

A list describing an interactive html map (tiles, centre, zoom).

Examples

morie_spatial_leaflet_spec(morie_spatial(data.frame(lon = -79, lat = 43)))
#> $provider
#> [1] "OpenStreetMap"
#> 
#> $interactive
#> [1] TRUE
#> 
#> $center
#> lon lat 
#> -79  43 
#> 
#> $zoom
#> [1] 8
#> 
#> $points
#>      lon lat
#> [1,] -79  43
#>