[OpenLayers-Users] editingtoolbar - adding a new control...

Christopher Schmidt crschmidt at metacarta.com
Thu May 31 17:25:46 EDT 2007


On Thu, May 31, 2007 at 03:44:31PM -0500, John Cole wrote:
> Ok, I've been tracing the objects and I'm a little confused :-)
> 
> I'd like to take the editingtoolbar control, add another tool like the path
> tool, and capture the event so I can calculate the length of the geometry
> (eg a measure tool).
> 
> What I'm having a problem with is how to hook up a function to capture the
> 'done' event raised by the DrawFeature class.

You actually probably want to be doing one of two things:
 * Using the 'featureAdded' method on the DrawFeature Control
 * Creating a different control using the Path/Point/Poly handler. 

Tim Schaub might be able to offer more insight.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list