Skip to content

Commit

Permalink
Merge pull request #570 from mapbender/fix/ruler-unmatching-value-app…
Browse files Browse the repository at this point in the history
…-backend

Change default value for immediate messurment to null
  • Loading branch information
eSlider committed Jul 17, 2017
2 parents 6dc2fbc + 3267112 commit 2eb6a78
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
icon: undefined,
label: true,
group: undefined,
immediate: true,
immediate: null,
persist: true,
type: 'line',
precision: 2
Expand Down Expand Up @@ -41,7 +41,7 @@

var handler = (this.options.type === 'line' ? OpenLayers.Handler.Path :
OpenLayers.Handler.Polygon);

var immediate = this.options.immediate || false;
this.control = new OpenLayers.Control.Measure(handler, {
callbacks: {
modify: function(point, feature, drawing){
Expand All @@ -64,7 +64,7 @@
}
},
persist: this.options.persist,
immediate: this.options.immediate,
immediate: immediate,
geodesic: this._isGeodesic()
});

Expand Down

0 comments on commit 2eb6a78

Please sign in to comment.