diff --git a/projects/common-map/src/fm-map/components/map/map.component.html b/projects/common-map/src/fm-map/components/map/map.component.html index 73f3750..4d32049 100644 --- a/projects/common-map/src/fm-map/components/map/map.component.html +++ b/projects/common-map/src/fm-map/components/map/map.component.html @@ -33,8 +33,8 @@ - - + + diff --git a/projects/common-map/src/fm-map/components/map/map.component.ts b/projects/common-map/src/fm-map/components/map/map.component.ts index c17ba87..214447b 100644 --- a/projects/common-map/src/fm-map/components/map/map.component.ts +++ b/projects/common-map/src/fm-map/components/map/map.component.ts @@ -84,6 +84,8 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit { private lastUrl = ""; private initialized: boolean = false; public noContent: boolean = false; + public overrideSelectedItemLayer: boolean = false; + public overrideOverlayLayers: boolean = false; @ViewChild('map') map; @ViewChild('contentDiv') contentDiv: ElementRef; @@ -99,6 +101,11 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit { private zone: NgZone, private deviceorientationService:DeviceOrientationService, public devicesService:DeviceService) { + if(route && route.snapshot && route.snapshot.data && route.snapshot.data["fm-map-map"]) { + let params = route.snapshot.data["fm-map-map"]; + this.overrideSelectedItemLayer = params["overrideSelectedItemlayer"] ? params["overrideSelectedItemlayer"] : false; + this.overrideOverlayLayers = params["overrideOverlayLayers"] ? params["overrideOverlayLayers"] : false; + } this.querySub = this.query$.pipe(skip(1), withLatestFrom(this.mapState$)).subscribe(([queryState,mapState]) =>{ if(queryState) { let newQueryState = tassign(mapReducers.initialQueryState);