[OpenLayers-Dev] trace along feature

Gagan Bansal gaganbansal123 at gmail.com
Fri Aug 5 01:54:02 EDT 2011


Hi,

In one of my project there is requirement of tracing of feature along
another feature while drawing a new feature. I have written control for this
(Trace). There are are some issues for that i need suggestion.
Here is the working example -
http://geometricnet.sourceforge.net/examples/trace.html
code for trace control -
http://geometricnet.svn.sourceforge.net/viewvc/geometricnet/tags/rev192/lib/GeometricNet/Control/Trace.js

- for the Trace control I am taking input as Snapping object, instead of
extending the Snapping class, what could be the best way.
- here I require some Linear Referencing functions so written those
functions. Are LRS functions available in OpenLayers 
(http://geometricnet.svn.sourceforge.net/viewvc/geometricnet/tags/rev192/lib/GeometricNet/Util.js) 
- I have made slight modification in Snapping control - snap event returns
the snapped Feature also. Here is the diff (
http://geometricnet.svn.sourceforge.net/viewvc/geometricnet/tags/rev192/lib/OpenLayers.patch?revision=193&view=markup) 
- Is this control can be part of the OpenLayers?  In case yes, how can I
contribute it.

Regards,
Gagan

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/trace-along-feature-tp6655335p6655335.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.


More information about the Dev mailing list