Map-added Svalbard-Maps
This commit is contained in:
committed by
Holden Ramsey
parent
17efdc57ff
commit
c79b74fbf0
@@ -41,6 +41,11 @@ QString EniroMapProvider::_getURL(int x, int y, int zoom) const
|
||||
return _mapUrl.arg(zoom).arg(x).arg((1 << zoom) - 1 - y).arg(_imageFormat);
|
||||
}
|
||||
|
||||
QString SvalbardMapProvider::_getURL(int x, int y, int zoom) const
|
||||
{
|
||||
return _mapUrl.arg(zoom).arg(y).arg(x);
|
||||
}
|
||||
|
||||
QString MapQuestMapProvider::_getURL(int x, int y, int zoom) const
|
||||
{
|
||||
return _mapUrl.arg(_getServerNum(x, y, 4)).arg(_mapName).arg(zoom).arg(x).arg(y).arg(_imageFormat);
|
||||
|
||||
@@ -148,6 +148,24 @@ public:
|
||||
QStringLiteral("norgeskart_bakgrunn")) {}
|
||||
};
|
||||
|
||||
class SvalbardMapProvider : public MapProvider
|
||||
{
|
||||
public:
|
||||
SvalbardMapProvider()
|
||||
: MapProvider(
|
||||
QStringLiteral("Svalbard Topo"),
|
||||
QStringLiteral("https://www.npolar.no/"),
|
||||
QStringLiteral("png"),
|
||||
AVERAGE_TILE_SIZE,
|
||||
QGeoMapType::StreetMap) {}
|
||||
|
||||
private:
|
||||
QString _getURL(int x, int y, int zoom) const final;
|
||||
|
||||
const QString _mapUrl = QStringLiteral("https://geodata.npolar.no/arcgis/rest/services/Basisdata/NP_Basiskart_Svalbard_WMTS_3857/MapServer/WMTS/tile/1.0.0/Basisdata_NP_Basiskart_Svalbard_WMTS_3857/default/default028mm/%1/%2/%3");
|
||||
};
|
||||
|
||||
|
||||
class EniroMapProvider : public MapProvider
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -39,6 +39,7 @@ const QList<SharedMapProvider> UrlFactory::_providers = {
|
||||
|
||||
std::make_shared<StatkartTopoMapProvider>(),
|
||||
std::make_shared<StatkartBaseMapProvider>(),
|
||||
std::make_shared<SvalbardMapProvider>(),
|
||||
|
||||
std::make_shared<EniroMapProvider>(),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user