Skip to content

Commit

Permalink
Fixed bug: previous way of disabling doubleClickZoom made drawing geo…
Browse files Browse the repository at this point in the history
…metry not work.
  • Loading branch information
Bird, Samuel S authored and Bird, Samuel S committed Aug 28, 2015
1 parent bfab83e commit a6157ff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/common/featuremanager/FeatureManagerService.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,8 @@
var geometryName = '';

// Disable DoubleClickZoom
mapService_.map.interactions_ = ol.interaction.defaults({doubleClickZoom: false}).extend([new ol.interaction.DragRotate()]);
//array[1] of interactions is doubleClickZoom
mapService_.map.interactions_.array_[1].values_.active = false;

goog.object.forEach(layer.get('metadata').schema, function(v, k) {
if (k !== 'fotos' && k !== 'photos') {
Expand Down Expand Up @@ -503,7 +504,8 @@
var deferredResponse = q_.defer();

// Enable DoubleClickZoom
mapService_.map.interactions_ = ol.interaction.defaults({doubleClickZoom: true}).extend([new ol.interaction.DragRotate()]);
//array[1] of interactions is doubleClickZoom
mapService_.map.interactions_.array_[1].values_.active = true;

if (save) {
var propertyXmlPartial = '';
Expand Down

0 comments on commit a6157ff

Please sign in to comment.