Commit 22e32384 authored by Marcus Lundblad's avatar Marcus Lundblad
Browse files

layersPopover: Fix crash when no aerial tiles defined

Fixes a crash when no aerial tiles is defined.
parent bcd2012c
Pipeline #287683 failed with stage
in 4 minutes and 34 seconds
......@@ -97,13 +97,16 @@ var LayersPopover = GObject.registerClass({
source: MapSource.createStreetSource(),
widget: this._streetLayerImage,
lastLocation: { x: -1, y: -1, z: -1 }
},
aerial: {
}
};
if (Service.getService().tiles.aerial) {
this._layerPreviews.aerial = {
source: MapSource.createAerialSource(),
widget: this._aerialLayerImage,
lastLocation: { x: -1, y: -1, z: -1 }
}
};
};
}
// disable the map type switch buttons if aerial is unavailable
if (Service.getService().tiles.aerial) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment