Changed default map

This commit is contained in:
Zakary Timson 2019-08-24 20:50:34 -04:00
parent e6b4b03abd
commit 16220ec65a

View File

@ -74,6 +74,7 @@ export class MapService {
setMapLayer(layer?: MapLayers) { setMapLayer(layer?: MapLayers) {
if(this.mapLayer) this.map.removeLayer(this.mapLayer); if(this.mapLayer) this.map.removeLayer(this.mapLayer);
if(layer == null) layer = MapLayers.ESRI_IMAGERY;
switch(layer) { switch(layer) {
case MapLayers.ESRI_TOPOGRAPHIC: case MapLayers.ESRI_TOPOGRAPHIC:
this.mapLayer = L.esri.basemapLayer('Topographic'); this.mapLayer = L.esri.basemapLayer('Topographic');
@ -81,8 +82,9 @@ export class MapService {
case MapLayers.ESRI_IMAGERY: case MapLayers.ESRI_IMAGERY:
this.mapLayer = L.esri.basemapLayer('Imagery'); this.mapLayer = L.esri.basemapLayer('Imagery');
break; break;
default: case MapLayers.ESRI_IMAGERY_CLARITY:
this.mapLayer = L.esri.basemapLayer('ImageryClarity'); this.mapLayer = L.esri.basemapLayer('ImageryClarity');
break;
} }
this.mapLayer.addTo(this.map); this.mapLayer.addTo(this.map);
if(this.weatherLayer) this.setWeatherLayer(this.weatherLayer.name); if(this.weatherLayer) this.setWeatherLayer(this.weatherLayer.name);