Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

gobj-ui: Map controls

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)
OptionDefaultDescription
showMarkerDragfalseShows the button that lets the user move the markers.

MarkerControl

The control of the markers.

new MarkerControl(gobj, config)
OptionDefaultDescription
showCenterMaptrueShows the button that puts the map in its centre.
showUserLocationfalseShows the button that goes to the position of the user.