Do not handle map event in 3D mode
This commit is contained in:
@@ -72,6 +72,7 @@ export interface State {
|
||||
layerValuesEnabled:boolean,
|
||||
layerValues: Array<ILayervalue>
|
||||
showDataLayerSlide:boolean,
|
||||
viewEnabled:boolean
|
||||
}
|
||||
|
||||
export const initialState: State = {
|
||||
@@ -115,7 +116,8 @@ export const initialState: State = {
|
||||
layerValuesY:0,
|
||||
layerValuesEnabled:false,
|
||||
layerValues:[],
|
||||
showDataLayerSlide:false
|
||||
showDataLayerSlide:false,
|
||||
viewEnabled:true
|
||||
}
|
||||
|
||||
export function reducer(state = initialState, action: mapActions.Actions | commonActions.Actions | RouterNavigationAction): State {
|
||||
@@ -538,6 +540,10 @@ export function reducer(state = initialState, action: mapActions.Actions | commo
|
||||
v.push(a.layervalue);
|
||||
return tassign(state,{layerValues:v});
|
||||
}
|
||||
case mapActions.SETVIEWSTATE:{
|
||||
let a= action as mapActions.SetViewState;
|
||||
return tassign(state,{viewEnabled:a.enabled});
|
||||
}
|
||||
case commonActions.ITEMDELETEDEVENT:{
|
||||
let a= action as commonActions.ItemDeletedEvent;
|
||||
if(state.selectedItem && state.selectedItem.code == a.itemCode) {
|
||||
@@ -599,6 +605,7 @@ export const getLayerValuesEnabled = (state:State) => state.layerValuesEnabled;
|
||||
export const getLayerValues = (state:State) => state.layerValues;
|
||||
export const getLayerValuesX = (state:State) => state.layerValuesX;
|
||||
export const getLayerValuesY = (state:State) => state.layerValuesY;
|
||||
export const getViewEnabled = (state:State) => state.viewEnabled;
|
||||
|
||||
|
||||
export const selectMapState = createFeatureSelector<State>(MODULE_NAME);
|
||||
@@ -632,5 +639,6 @@ export const selectGetLayerValuesEnabled = createSelector(selectMapState,getLaye
|
||||
export const selectGetLayerValues = createSelector(selectMapState,getLayerValues);
|
||||
export const selectGetLayerValuesX = createSelector(selectMapState,getLayerValuesX);
|
||||
export const selectGetLayerValuesY = createSelector(selectMapState,getLayerValuesY);
|
||||
export const selectGetViewEnabled = createSelector(selectMapState,getViewEnabled);
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user