mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
Add Statkart Topo2 aka... I scratch YOUR back, you scratch mine!
17f68c3be6
This commit is contained in:
parent
d7fef72b4d
commit
8f8b2fccfc
@ -68,6 +68,7 @@ public:
|
||||
GoogleLabelsKorea = 4003,
|
||||
GoogleHybridKorea = 4005,
|
||||
|
||||
Statkart_Topo2 = 5500
|
||||
};
|
||||
static QString StrByType(Types const & value)
|
||||
{
|
||||
|
@ -174,6 +174,16 @@ QByteArray OPMaps::GetImageFrom(const MapType::Types &type, const Point &pos, co
|
||||
qheader.setRawHeader("Referrer", "http://www.openstreetmap.org/");
|
||||
}
|
||||
break;
|
||||
case MapType::Statkart_Topo2:
|
||||
{
|
||||
qheader.setRawHeader("Referrer", "http://www.norgeskart.no/");
|
||||
}
|
||||
break;
|
||||
case MapType::Statkart_Topo2:
|
||||
{
|
||||
qheader.setRawHeader("Referrer", "http://www.norgeskart.no/");
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
|
@ -426,6 +426,12 @@ QString UrlFactory::MakeImageUrl(const MapType::Types &type, const Point &pos, c
|
||||
return QString("http://sigpac.magrama.es/SDG/raster/%1@3785/%2.%3.%4.img").arg(levelsForSigPacSpainMap[zoom]).arg(zoom).arg(pos.X()).arg((2 << (zoom - 1)) - pos.Y() - 1);
|
||||
}
|
||||
break;
|
||||
case MapType::Statkart_Topo2:
|
||||
{
|
||||
|
||||
qDebug() << QString("http://opencache.statkart.no/gatekeeper/gk/gk.open_gmaps?layers=topo2&zoom=%1&x=%2&y=%3").arg(zoom).arg(pos.X()).arg(pos.Y());
|
||||
return QString("http://opencache.statkart.no/gatekeeper/gk/gk.open_gmaps?layers=topo2&zoom=%1&x=%2&y=%3").arg(zoom).arg(pos.X()).arg(pos.Y());
|
||||
}
|
||||
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user