Add check for key Layers

This commit is contained in:
kalbl
2016-10-26 22:15:07 +02:00
parent 9f7e1e05b2
commit 9117599043
@@ -105,10 +105,10 @@ namespace globebrowsing {
dictionary.getValue(keyCameraMinHeight, cameraMinHeight);
_generalProperties.cameraMinHeight.set(cameraMinHeight);
// Init tile provider manager
// Init layer manager
ghoul::Dictionary layersDictionary;
dictionary.getValue(keyLayers, layersDictionary);
if(!dictionary.getValue(keyLayers, layersDictionary))
throw ghoul::RuntimeError(keyLayers + " must be specified specified!");
_layerManager = std::make_shared<LayerManager>(layersDictionary);