lmap: Create an interactive map

Description Usage Arguments Details Value Author(s) See Also

Description

lmap creates an instance of an interactive map using Leaflet.

Usage

1
2
3
4
lmap(x = NULL, y = NULL, zoom = NULL, where, xlim = NULL, 
    ylim = NULL, width = 800, height = 600,
    tilepath = "https://rcloud.research.att.com/tiles-light/{z}/{x}/{y}.png", 
    eventfunc = NULL, lat = y, lon = x)

Arguments

x

convenience positional shortcut for lon

y

convenience positional shortcut for lat

zoom

zoom level

lat

latitude of the center or points to base the center on

lon

longitude of the center or points to base the center on

where

optional, string identifying the element which will contain the map using jQuery selector notation. If absent, a new <div> element is created using rcloud.html.out.

width

if where is missing, the width (in pixels) of the new map element

height

if where is missing, the height (in pixels) of the new map element

xlim

range of longitudes to show

ylim

range of latitudes to show

tilepath

specification for tiles URLs

eventfunc

named list of callback functions to register

Details

lmap creates a new instance of a Leaflet intercative map. It also sets the current active map to this objects such that calls to lpoints and other plotting functions will default to this instance if no map is specified explicitly.

Callback functions should generally have the signature function(i, ...) where i is the index of the element that triggered the callback (for lpoints, lmarkers etc). For lmap it is always 0.

Value

Returns an object of the class RCloudLeaflet representing the map.

Author(s)

Simon Urbanek

See Also

lpoints


s-u/rcleaflet documentation built on May 28, 2019, 10:48 a.m.