don't fire measurepartial on first click. r=elemoine (closes #2096)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10406 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
1 parent
cca1395fc6
commit
cd94a7f17d
1 file changed
+8
-6
@@ -179,12 +179,14 @@ OpenLayers.Control.Measure = OpenLayers.Class(OpenLayers.Control, {
|
||||
* geometry - {<OpenLayers.Geometry>} The sketch geometry.
|
||||
*/
|
||||
measurePartial: function(point, geometry) {
|
||||
this.delayedTrigger = window.setTimeout(
|
||||
OpenLayers.Function.bind(function() {
|
||||
this.measure(geometry, "measurepartial");
|
||||
}, this),
|
||||
this.partialDelay
|
||||
);
|
||||
if (geometry.getLength() > 0) {
|
||||
this.delayedTrigger = window.setTimeout(
|
||||
OpenLayers.Function.bind(function() {
|
||||
this.measure(geometry, "measurepartial");
|
||||
}, this),
|
||||
this.partialDelay
|
||||
);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user