Commit bcd2012c authored by Marcus Lundblad's avatar Marcus Lundblad
Browse files

mapView: Don't try to set aerial tiles if not available

Safe-guard agains setting the aerial tile source
if it's not available in the service file.
This avoid a crash if aerial was saved as last-used
map type in gsettings and at next startup the service
has dropped support.
parent 4577e5fd
Pipeline #286334 failed with stage
in 5 minutes and 20 seconds
......@@ -322,7 +322,7 @@ var MapView = GObject.registerClass({
this._mapType = mapType;
if (mapType !== MapType.LOCAL) {
if (mapType === MapType.AERIAL)
if (mapType === MapType.AERIAL && Service.getService().tiles.aerial)
this.view.map_source = MapSource.createAerialSource();
this.view.map_source = MapSource.createStreetSource();
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