| Version 3 (modified by jachym, 6 years ago) |
|---|
Advanced Editing
Existing code
Vector Branch
Some of the following elements have already been implemented in the old vector branch.
See :
- http://dev.openlayers.org/sandbox/vector/examples/EditingDemo.html
- http://dev.openlayers.org/sandbox/vector/examples/wfs-T.html
Tim Sandbox
Future code must be based on Tim's code.
See: http://dev.openlayers.org/sandbox/tschaub/feature/examples/modify-feature.html
Jachym Sandbox
Jachym Cepicky wrote some great code based on Tim's work to provide drag/add/remove vertices tools and snapping functionnality.
It has to be improved in some way but this is probably a good start.
The snapping implementation doesn't feel good to me though because it requires a server-side service.
No, it does not: the functions are designed, so that no server-side services are required. Empty method customSnap(event) is defined, which can be modified according to users needs (I use it for server-side snapping). -- Jachym
See: http://www.bnhelp.cz/mapserv/pokusy/openlayers/digitalizace/
Detailed (Needed) Functionnalities
Drag Vertex
Add Vertex
Remove Vertex
Snapping
Create Island/Donut Polygons
Attribute management
Eeach feature should get new data: {} atribute, which could be used for attribute management. I have some nearly working example, just ask, if you are interested -- Jachym
