pmDrawOptions: Set Options for 'leaflet.pm' Draw Mode

Description Usage Arguments Value

Description

Set Options for 'leaflet.pm' Draw Mode

Usage

1
2
3
4
5
pmDrawOptions(snappable = TRUE, snapDistance = 20, snapMiddle = TRUE,
  tooltips = TRUE, cursorMarker = TRUE, finishOn = NULL,
  allowSelfIntersection = TRUE, templineStyle = list(),
  hintlineStyle = list(color = "#3388ff", dashArray = "5,5"),
  markerStyle = list(draggable = TRUE))

Arguments

snappable

logical to snap while drawing. Default is TRUE.

snapDistance

integer for the distance within which snapping will occur. Default is 20.

snapMiddle

logical to snap in the middle of segments. Default is TRUE.

tooltips

logical to show tooltips. Default is TRUE.

cursorMarker

logical to show a marker at the cursor. Default is TRUE.

finishOn

string type of layer event to finish the drawn shape. Example events are 'mouseout', 'dblclick', 'contextmenu'. Default is NULL.

allowSelfIntersection

logical to allow self-intersection. Default is TRUE.

templineStyle

list to customize the styling of the lines between coordinates and markers.

hintlineStyle

list to customize the styling of the line between the last marker and the cursor.

markerStyle

list to customize the styling of the added marker.

Value

list of options


leafpm documentation built on May 2, 2019, 1:27 p.m.