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

Map API refactoring

Including several map providers refactoring/rewrite
especial KML, JNX and TrekBuddy atlases.
This commit is contained in:
2023-05-04 09:38:35 +02:00
parent d593b073d5
commit 97e12d809f
60 changed files with 753 additions and 816 deletions

View File

@ -44,6 +44,15 @@ void WMTSMap::wmtsReady()
emit mapLoaded();
}
void WMTSMap::load(const Projection &in, const Projection &out,
qreal deviceRatio, bool hidpi)
{
Q_UNUSED(in);
Q_UNUSED(out);
_mapRatio = hidpi ? deviceRatio : 1.0;
}
void WMTSMap::clearCache()
{
_tileLoader->clearCache();
@ -97,7 +106,7 @@ QRectF WMTSMap::bounds()
return lb.isValid() ? lb & tb : tb;
}
RectC WMTSMap::llBounds()
RectC WMTSMap::llBounds(const Projection &)
{
if (_wmts->bbox().isValid())
return _wmts->bbox();