diff --git a/src/map/mapsource.cpp b/src/map/mapsource.cpp index 98910b0f..8b569f94 100644 --- a/src/map/mapsource.cpp +++ b/src/map/mapsource.cpp @@ -15,7 +15,8 @@ MapSource::Config::Config() : type(TMS), zooms(ZOOM_MIN, ZOOM_MAX), bounds(Coordinates(BOUNDS_LEFT, BOUNDS_TOP), Coordinates(BOUNDS_RIGHT, - BOUNDS_BOTTOM)), format("image/png"), rest(false), yx(false) {} + BOUNDS_BOTTOM)), style("default"), format("image/png"), rest(false), + yx(false) {} Range MapSource::zooms(QXmlStreamReader &reader) diff --git a/src/map/wms.cpp b/src/map/wms.cpp index b5a9003b..c68e5c31 100644 --- a/src/map/wms.cpp +++ b/src/map/wms.cpp @@ -167,7 +167,7 @@ bool WMS::parseCapabilities(const QString &path, const Setup &setup) _errorString = ctx.setup.layer() + ": layer not provided"; return false; } - if (!ctx.style) { + if (!ctx.style && ctx.setup.style() != "default") { _errorString = ctx.setup.style() + ": style not provided"; return false; }