leafDraw: digitizing vector features using leaflet draw

Description Usage Arguments Note Author(s) Examples

View source: R/leafDraw.R

Description

leafDraw is based on the leaflet draw plugin. It provides a bunch of leaflet maps as base layers for digitizing vector features.

Usage

1
2
3
4
5
6
leafDraw(mapCenter = c(50.80801, 8.72993), zoom = 15, line = TRUE,
  rectangle = TRUE, poly = TRUE, circle = TRUE, point = TRUE,
  remove = TRUE, position = "topright", maplayer = c("CartoDB.Positron",
  "OpenStreetMap", "Esri.WorldImagery", "Thunderforest.Landscape",
  "OpenTopoMap"), overlay = NULL, preset = "all", cex = 10, lwd = 2,
  alpha = 0.6, opacity = 0.7)

Arguments

zoom

initial zoom level

line

enable the draw tool line tool

poly

enable the draw polygon tool

circle

enable the draw circle tool

point

enable the draw point tool

remove

enable/disable the remove feature of the draw tool

position

place to put the toolbar (topright, topleft, bottomright, bottomleft)

maplayer

string as provided by leaflet-provider

overlay

optional sp object

preset

textstring "NULL" full draw version, "uav" for flightarea digitizing, "ext" for rectangles

mapcenter

c(lat,lon) central point of the leaflet map

intersection

enable/disable th possibility to overlay lines or polygons

Note

Yu can either save the digitized object to a json file or you ma grab the json string via the clipboard

Author(s)

Chris Reudenbach

Examples

1
2
3
4
5
6
7
8
# all features
leafDraw()

# preset for digitizing uav flight areas
leafDraw(preset="uav")

#' # preset for digitizing extents
leafDraw(preset="ext")

gisma/robubu documentation built on May 17, 2019, 5:28 a.m.