This module allows you to draw polygons on the map
This documentation it's WIP
Internals.Plugins.DrawingTool.Events msg
Opaque type that lists the message(s) that will be triggered with actions while drawing.
Internals.Plugins.DrawingTool.State
Opaque type that upholds the data required to know if drawing mode is enabled or disabled.
events : (List ( Basics.Float, Basics.Float ) -> msg) -> Events msg
Initializer for Events. Requires a message that will trigger once the user closes a polygon.
initState : State
Initializer for State.
startDrawing : State -> State
Enters the drawing mode. (Allows the user to draw polygons on the map)
stopDrawing : State -> State
Leaves the drawing mode. (Does not allows the user to draw on the map)
isDrawingEnabled : State -> Basics.Bool
Queries if the drawing mode is currently active.