Description Usage Arguments Note Author(s) Examples
leafDraw is based on the leaflet draw plugin. It provides a bunch of leaflet maps as base layers for digitizing vector features.
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)
|
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 |
Yu can either save the digitized object to a json file or you ma grab the json string via the clipboard
Chris Reudenbach
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.