![]() |
Stellarium
25.3
|
Special widget that shows a world map. More...
#include <MapWidget.hpp>
Signals | |
| void | positionChanged (double longitude, double latitude, const QColor &color) |
| Signal emitted when we click on the map. It also delivers the color value at the clicked point. | |
Public Member Functions | |
| MapWidget (QWidget *parent=nullptr) | |
| void | setMarkerPos (double longitude, double latitude) |
| Set the current marker position. More... | |
| void | setMarkerVisible (bool visible) |
| allow hiding the location arrow (if sitting on an observer) | |
| void | setMap (const QPixmap &map) |
Protected Member Functions | |
| void | mousePressEvent (QMouseEvent *event) override |
| void | paintEvent (QPaintEvent *event) override |
Special widget that shows a world map.
| void MapWidget::setMarkerPos | ( | double | longitude, |
| double | latitude | ||
| ) |
Set the current marker position.
| longitude | longitude in degree in range [-180;180[ |
| latitude | latitude in degree in range [-90;90] |