Map controls¶
Two controls for a map of maplibre. Each one takes the gobj that builds it, so every action of the user arrives at the state machine of that gobj as an event.
Source code: src/lib_maplibre.js
EditControl¶
The control of edition of the map.
new EditControl(gobj, config)| Option | Default | Description |
|---|---|---|
showMarkerDrag | false | Shows the button that lets the user move the markers. |
MarkerControl¶
The control of the markers.
new MarkerControl(gobj, config)| Option | Default | Description |
|---|---|---|
showCenterMap | true | Shows the button that puts the map in its centre. |
showUserLocation | false | Shows the button that goes to the position of the user. |