1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-06-25 18:49:16 +02:00

Adjusted stuff to comply with the new map version 1 xsd

This commit is contained in:
2018-04-08 17:48:13 +02:00
parent 259a15332e
commit c894e75c17
7 changed files with 12 additions and 12 deletions

View File

@ -13,7 +13,7 @@
#define BOUNDS_BOTTOM -85.0511
MapSource::Config::Config() : type(TMS), zooms(ZOOM_MIN, ZOOM_MAX),
MapSource::Config::Config() : type(OSM), zooms(ZOOM_MIN, ZOOM_MAX),
bounds(Coordinates(BOUNDS_LEFT, BOUNDS_TOP), Coordinates(BOUNDS_RIGHT,
BOUNDS_BOTTOM)), format("image/png"), rest(false) {}
@ -119,7 +119,7 @@ void MapSource::map(QXmlStreamReader &reader, Config &config)
{
const QXmlStreamAttributes &attr = reader.attributes();
config.type = (attr.value("type") == "WMTS") ? WMTS
: (attr.value("type") == "WMS") ? WMS : TMS;
: (attr.value("type") == "WMS") ? WMS : OSM;
while (reader.readNextStartElement()) {
if (reader.name() == "name")

View File

@ -18,7 +18,7 @@ public:
private:
enum Type {
TMS,
OSM,
WMTS,
WMS
};