From 16220ec65a650b67949a0a2f0c6244cd43b3878d Mon Sep 17 00:00:00 2001 From: ztimson Date: Sat, 24 Aug 2019 20:50:34 -0400 Subject: [PATCH] Changed default map --- src/app/services/map.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/services/map.service.ts b/src/app/services/map.service.ts index 232d5a6..8b5aa51 100644 --- a/src/app/services/map.service.ts +++ b/src/app/services/map.service.ts @@ -74,6 +74,7 @@ export class MapService { setMapLayer(layer?: MapLayers) { if(this.mapLayer) this.map.removeLayer(this.mapLayer); + if(layer == null) layer = MapLayers.ESRI_IMAGERY; switch(layer) { case MapLayers.ESRI_TOPOGRAPHIC: this.mapLayer = L.esri.basemapLayer('Topographic'); @@ -81,8 +82,9 @@ export class MapService { case MapLayers.ESRI_IMAGERY: this.mapLayer = L.esri.basemapLayer('Imagery'); break; - default: + case MapLayers.ESRI_IMAGERY_CLARITY: this.mapLayer = L.esri.basemapLayer('ImageryClarity'); + break; } this.mapLayer.addTo(this.map); if(this.weatherLayer) this.setWeatherLayer(this.weatherLayer.name);