Skip to content

map_widget.hpp

file src/app/map/map_widget.hpp ยท Applications

The map view of the desktop application, MapWidget, and the scale bar it draws.

Source src/app/map/map_widget.hpp

MapWidget paints OpenStreetMap-style raster tiles from a TileCache and draws the vessel, its track, a loaded route, the destination and the overlays over them in the same pass, as ADR 0010 decides. scale_bar picks the round distance the scale bar shows.

Namespaces

Namespace Description
nmeasim::app::map The slippy-map view of the desktop application, part of nmeasim::app.

Types

Type Description
ScaleBar Length and caption of the scale bar.
MapWidget A slippy map: raster tiles from a TileCache, the vessel with its heading and a vector of its course and speed, the track it has sailed, and mouse, touchpad and keyboard navigation.
MapWidget::Vessel The vessel as last placed with set_vessel.

Namespace members

Declared or defined in this file and documented on the page of their namespace.

Member Description
nmeasim::app::map::scale_bar Returns the longest round distance whose bar fits in a maximum length.
nmeasim::app::map::default_attribution Returns the attribution the map shows for a tile server when none is configured.