1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-21 14:24:24 +02:00

Added DEM data overview

This commit is contained in:
2021-09-23 22:44:21 +02:00
parent c43b4060ca
commit 7920f0f245
6 changed files with 66 additions and 1 deletions

View File

@ -293,6 +293,23 @@ void MapView::loadMaps(const QList<MapAction *> &maps)
centerOn(contentCenter());
}
void MapView::loadDEMs(const QList<Area> &dems)
{
int zoom = _map->zoom();
for (int i = 0; i < dems.size(); i++)
addArea(dems.at(i));
if (fitMapZoom() != zoom)
rescale();
else
updatePOIVisibility();
updateZValues(_areas);
centerOn(contentCenter());
}
int MapView::fitMapZoom() const
{
RectC br = _tr | _rr | _wr | _ar;