Skip to content

Commit

Permalink
fixes scalebox
Browse files Browse the repository at this point in the history
  • Loading branch information
mircobe87 committed Oct 1, 2015
1 parent 7219443 commit ff0acb9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions web/client/actions/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ function changeMousePointer(pointerType) {
};
}

function changeZoomLevel(zoomLvl) {
function changeZoomLevel(zoomLvl, mapStateSource) {
return {
type: CHANGE_ZOOM_LVL,
zoom: zoomLvl
zoom: zoomLvl,
mapStateSource: mapStateSource
};
}

Expand Down
3 changes: 2 additions & 1 deletion web/client/reducers/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ function mapConfig(state = null, action) {
});
case CHANGE_ZOOM_LVL:
return assign({}, state, {
zoom: action.zoom
zoom: action.zoom,
mapStateSource: action.mapStateSource
});
case LAYER_LOADING: {
let loadingLayers = assign({}, (state && state.loadingLayers) || {});
Expand Down

0 comments on commit ff0acb9

Please sign in to comment.