Re: [OpenLayers-Users] Extending callback function of Handler.Path

2008-06-23 Thread Mifan Careem
Hi Eric, Thanks. I added the following within my handler after going through the DrawFeature code - works fine now :-) var feature = new OpenLayers.Feature.Vector(lineGeom); lineLayer.addFeatures([feature]); Regards Mifan http://talksahana.com http://techmania.wordpress.com -

Re: [OpenLayers-Users] Extending callback function of Handler.Path

2008-06-17 Thread Eric Lemoine
Hi. I haven't looked at your code but it's no surprise that the feature disappears once drawn - the point handler, which the path handler inherits from, uses a temporary vector layer. It is the responsibility of your control to actually add drawn features to a permanent layer, which control users w

[OpenLayers-Users] Extending callback function of Handler.Path

2008-06-17 Thread Mifan Careem
Hi All, I'm trying to get the coordinates from line vectors drawn by users using Control.storeFeature and store them in the database. I intend to do this using a solution posted in the lists sometime back by using the "done" callback of Handler.Path, and doing the required processing within it.