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

Improved default WMS/WMTS style handling

This commit is contained in:
2018-04-03 22:35:13 +02:00
parent 68eac5b8cc
commit 4096d87a6a
5 changed files with 36 additions and 37 deletions

View File

@ -15,8 +15,7 @@
MapSource::Config::Config() : type(TMS), zooms(ZOOM_MIN, ZOOM_MAX),
bounds(Coordinates(BOUNDS_LEFT, BOUNDS_TOP), Coordinates(BOUNDS_RIGHT,
BOUNDS_BOTTOM)), style("default"), format("image/png"), rest(false),
yx(false) {}
BOUNDS_BOTTOM)), format("image/png"), rest(false), yx(false) {}
Range MapSource::zooms(QXmlStreamReader &reader)
@ -195,10 +194,6 @@ Map *MapSource::loadFile(const QString &path)
_errorString = "Missing layer definition";
return 0;
}
if (config.style.isEmpty()) {
_errorString = "Missing style definiton";
return 0;
}
if (config.format.isEmpty()) {
_errorString = "Missing format definition";
return 0;