[OpenLayers-Dev] snapping

Tim Schaub tschaub at opengeo.org
Thu Jan 8 18:30:39 EST 2009


Hey-

I done some work to create a snapping agent for vector editing [1]. 
This extends (in spirit) the work started by jachym and continued by 
fredj [2].  The snapping agent is implemented as a single control that 
listens for vector layer events.

This included a number of enhancements to the geometry classes and 
sketch handlers.  One particularly nice addition (in my opinion) is 
geometry.distanceTo for all geometry types.  I'll tease out this change 
and others to create specific tickets.

If others are interested in snapping, see the wiki page for more details 
[3].  Add any comments if there are additional bits of functionality 
that should be considered.

Tim

[1] http://dev.openlayers.org/sandbox/topp/editing/examples/snapping.html
[2] http://trac.openlayers.org/ticket/954
[3] http://trac.openlayers.org/wiki/Proposal/Snapping

-- 
Tim Schaub
OpenGeo - http://opengeo.org
Expert service straight from the developers.



More information about the Dev mailing list