mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:00:04 +00:00
Move to alert when pressing go button
- Still need an option to auto-update to nearest WSR-88D site
This commit is contained in:
parent
c117078335
commit
3692ef75f2
5 changed files with 23 additions and 2 deletions
|
|
@ -439,6 +439,15 @@ void MapWidget::SetAutoRefresh(bool enabled)
|
|||
}
|
||||
}
|
||||
|
||||
void MapWidget::SetMapLocation(double latitude, double longitude)
|
||||
{
|
||||
if (p->map_ != nullptr && p->prevLatitude_ != latitude ||
|
||||
p->prevLongitude_ != longitude)
|
||||
{
|
||||
p->map_->setCoordinate({latitude, longitude});
|
||||
}
|
||||
}
|
||||
|
||||
void MapWidget::SetMapParameters(
|
||||
double latitude, double longitude, double zoom, double bearing, double pitch)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@ public:
|
|||
void SelectRadarSite(const std::string& radarSite);
|
||||
void SetActive(bool isActive);
|
||||
void SetAutoRefresh(bool enabled);
|
||||
void SetMapLocation(double latitude, double longitude);
|
||||
void SetMapParameters(double latitude,
|
||||
double longitude,
|
||||
double zoom,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue