Skip to content

Commit

Permalink
BUG #25 ZoomBox deactivate WMSGetFeatureInfo
Browse files Browse the repository at this point in the history
When a user uses the ZoomBox control, the WMSGetFeatureInfo is deactivated. It needs to be reactivted after the zoomBox ended.
  • Loading branch information
rldhont committed Oct 4, 2013
1 parent 7e7cb8b commit fc34c93
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lizmap/www/js/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -1416,6 +1416,7 @@ var lizMap = function() {
self.addClass('ui-state-select');
map.getControlsByClass('OpenLayers.Control.ZoomBox')[0].deactivate();
map.getControlsByClass('OpenLayers.Control.Navigation')[0].activate();
map.getControlsByClass('OpenLayers.Control.WMSGetFeatureInfo')[0].activate();
});
$('#navbar button.zoom').button({
text:false,
Expand All @@ -1428,6 +1429,7 @@ var lizMap = function() {
$('#navbar button.pan').removeClass('ui-state-select');
self.addClass('ui-state-select');
map.getControlsByClass('OpenLayers.Control.Navigation')[0].deactivate();
map.getControlsByClass('OpenLayers.Control.WMSGetFeatureInfo')[0].deactivate();
map.getControlsByClass('OpenLayers.Control.ZoomBox')[0].activate();
});
$('#navbar button.zoom-extent').button({
Expand Down

0 comments on commit fc34c93

Please sign in to comment.