measure control - wrong measure when moving fast, r=fredj (closes #2691)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@10407 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Éric Lemoine
2010-06-17 12:55:44 +00:00
parent cd94a7f17d
commit c4fbe1c0b3
2 changed files with 48 additions and 0 deletions

View File

@@ -180,6 +180,7 @@ OpenLayers.Control.Measure = OpenLayers.Class(OpenLayers.Control, {
*/
measurePartial: function(point, geometry) {
if (geometry.getLength() > 0) {
geometry = geometry.clone();
this.delayedTrigger = window.setTimeout(
OpenLayers.Function.bind(function() {
this.measure(geometry, "measurepartial");