diff --git a/projects/common-map/src/fm-map/components/aol/item-vector-source/item-vector-source.component.ts b/projects/common-map/src/fm-map/components/aol/item-vector-source/item-vector-source.component.ts index 171a136..3c4b512 100644 --- a/projects/common-map/src/fm-map/components/aol/item-vector-source/item-vector-source.component.ts +++ b/projects/common-map/src/fm-map/components/aol/item-vector-source/item-vector-source.component.ts @@ -34,7 +34,7 @@ export class ItemVectorSourceComponent extends SourceVectorComponent implements @Input() selectedFeature: Feature; @Input() selectedItem: IItem; @Input() styles:IStyles; - @Output() onFeaturesSelected: EventEmitter = new EventEmitter(); + @Output() onFeatureSelected: EventEmitter = new EventEmitter(); @Output() onFeatureHover: EventEmitter = new EventEmitter(); private stylesCache:IStyles = {}; @@ -96,9 +96,9 @@ export class ItemVectorSourceComponent extends SourceVectorComponent implements this.map.instance.addInteraction(this._hoverSelect); this._select.on('select', (e) => { if (e.selected.length > 0 && e.selected[0]) { - this.onFeaturesSelected.emit(e.selected[0]); + this.onFeatureSelected.emit(e.selected[0]); } else { - this.onFeaturesSelected.emit(null); + this.onFeatureSelected.emit(null); } }); this._hoverSelect.on('select', (e) => { 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 2455031..c7a11f3 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 @@ -35,7 +35,7 @@ - +
diff --git a/projects/common/src/fm/actions/app-common.actions.ts b/projects/common/src/fm/actions/app-common.actions.ts index 99afe44..7e1ebc5 100644 --- a/projects/common/src/fm/actions/app-common.actions.ts +++ b/projects/common/src/fm/actions/app-common.actions.ts @@ -66,6 +66,8 @@ export const ONLINE = '[AppCommon] Online'; export const OFFLINE = '[AppCommon] Offline'; +export const SETPAGEMODE = '[AppCommon] SetPageMode'; + export class InitUser implements Action { readonly type = INITUSER; @@ -298,6 +300,12 @@ export class Offline implements Action { constructor() { } } + +export class SetPageMode implements Action { + readonly type = SETPAGEMODE; + + constructor(public pageMode:boolean) {} +} export type Actions = OpenModal @@ -337,6 +345,7 @@ export type Actions = OpenModal | ToggleAccountMenu | CloseAll | Online - | Offline; + | Offline + | SetPageMode; diff --git a/projects/common/src/fm/components/app/app.component.html b/projects/common/src/fm/components/app/app.component.html index 8390d7c..f2e7713 100644 --- a/projects/common/src/fm/components/app/app.component.html +++ b/projects/common/src/fm/components/app/app.component.html @@ -1,7 +1,14 @@ -
-