MapEditor
Widget for editing geographic locations on an interactive map.
| Inherits | QWidget |
| Group | map |
Declared in src/libs/libmap/map/MapEditor.hpp.
Detailed description
MapEditor provides an interactive map view with support for multiple map providers (Google Maps, OpenStreetMap, etc.), geometry editing, and location management. It integrates QMapControl.
The center button
MapEditor has no position source of its own (path-following, one position per node, 2026-10-19). The host gives the position that the center button follows: setCurrentPosition() or setCurrentCoordinate(). The host decides which node that is. The Hub's MapActivity gives the Hub's Node::position(). The Remote's RemotePathActivity gives the position of the selected Agent. A host with no node, as the widget catalog, gives none. The button is then disabled, and its tooltip says that no position is known. centeringChanged() tells the host when the button is checked, so that the host asks its node for the position only then.

See also qmapcontrol::MapControl, MapLocationEditor.