Did you investigate the Vector layer events sketchstarted and sketchmodified?
/Björn 2010/2/12 smartini <nab...@stevemartin.org.uk>: > > I'd like to extend the original poster's question a little with a further > constraint: > > Trapping the click and getting lon/lat - no problem. However, I'd like to be > able to do this while drawing on a vector layer. > It appears that once drawing has started, the click event no longer fires or > at least isn't being handled by the handler as defined in the solution to > this original post. The myriad of events available to the layer don't appear > to contain what I need either. > Ideally, there would be a 'vertexadded' event that I could use as this is > specifically what I'm looking to trap. > > Just to describe the scenario: I want to grab the xy each time a point is > plotted, convert to lon/lat and then map.setCenter() on this new point so > that I can plot a line without worrying about being able to see the whole > terrain that I want to plot on all at once. > > Cheers, > Steve > -- > View this message in context: > http://n2.nabble.com/Get-lat-lon-from-user-click-tp4200240p4562302.html > Sent from the OpenLayers Dev mailing list archive at Nabble.com. > _______________________________________________ > Dev mailing list > Dev@openlayers.org > http://openlayers.org/mailman/listinfo/dev > _______________________________________________ Dev mailing list Dev@openlayers.org http://openlayers.org/mailman/listinfo/dev