when drawing make sure the point follow the cursor, even after zooming in or out, p=jorix, r=me (closes #3195)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11836 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -157,6 +157,7 @@ OpenLayers.Handler.Path = OpenLayers.Class(OpenLayers.Handler.Point, {
|
||||
this.line.geometry.addComponent(
|
||||
this.point.geometry, this.line.geometry.components.length
|
||||
);
|
||||
this.layer.addFeatures([this.point]);
|
||||
this.callback("point", [this.point.geometry, this.getGeometry()]);
|
||||
this.callback("modify", [this.point.geometry, this.getSketch()]);
|
||||
this.drawFeature();
|
||||
|
||||
Reference in New Issue
Block a user