Set Options for 'leaflet.pm' Draw Mode
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))logical to snap while drawing. Default is TRUE.
integer for the distance within which snapping will occur. Default is 20.
logical to snap in the middle of segments. Default is TRUE.
logical to show tooltips. Default is TRUE.
logical to show a marker at the cursor. Default is TRUE.
string type of layer event to finish the drawn shape. Example events are
'mouseout', 'dblclick', 'contextmenu'. Default is NULL.
logical to allow self-intersection. Default is TRUE.
list to customize the styling of the lines between coordinates and markers.
list to customize the styling of the line between the last marker and the cursor.
list to customize the styling of the added marker.
list of options