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:
@ -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")
|
||||
|
@ -18,7 +18,7 @@ public:
|
||||
|
||||
private:
|
||||
enum Type {
|
||||
TMS,
|
||||
OSM,
|
||||
WMTS,
|
||||
WMS
|
||||
};
|
||||
|
Reference in New Issue
Block a user