Re: [OpenLayers-Users] storing mouse click during vector drawing

2009-03-19 Thread Alexandre Dube
Hi, If all that matters to you is to have each of your points after drawing a feature, then you could register events to your DrawFeatures controls like this : controls['point'].events.register("featureadded",'' , featureAdded); function featureAdded(evt){ var feature = evt.feature;

[OpenLayers-Users] storing mouse click during vector drawing

2009-03-19 Thread wrap map
how can i get the coordinates value on drawing of polygon at each mouse click , actually i want to store each coordinates i clicked during vector drawing. currently i use this for vector drawing controls but at time of drawing i cannot get the coordinates at each point i clicked during drawing.