Fix several issues, attemt to fix zooming issue
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good
This commit is contained in:
@@ -128,7 +128,8 @@ export function reducer(state = initialState, action: mapActions.Actions | commo
|
||||
case mapActions.STARTSEARCHSUCCESS: {
|
||||
let a = action as mapActions.StartSearchSuccess;
|
||||
let extent = state.extent;
|
||||
if (action.query.bboxFilter) {
|
||||
if (!action.query.bboxFilter) {
|
||||
console.debug("Set extent");
|
||||
extent = createEmpty();
|
||||
if (extent) {
|
||||
for (let f of action.features) {
|
||||
@@ -222,6 +223,7 @@ export function reducer(state = initialState, action: mapActions.Actions | commo
|
||||
return tassign(state, { searchCollapsed: state.panelVisible ? false: true});
|
||||
}
|
||||
case mapActions.SETEXTENT: {
|
||||
console.debug("Set extent 2");
|
||||
let a = action as mapActions.SetExtent;
|
||||
return tassign(state, { extent: a.extent });
|
||||
}
|
||||
|
Reference in New Issue
Block a user