vector editing movie
Steven M. Ottens
steven.ottens at geodan.nl
Fri Nov 3 08:22:08 EST 2006
Hi list,
I'm a bit behind with the whole vector discussion, since I'm on a tight
deadline to produce feature editing functionality. Building upon Patrice
work in Mapbuilder I wrote functionality to display features in SVG/VML
(Patrice work) and drag the vertices around and add/remove vertices.
Currently the application is behind a firewall, so I can only give you
all a screencast:
http://jana.geodan.nl/steveno/Untitled.html and you've to take my word
for it that it actually works both in FF and in IE. :)
This is how I like to see feature editing in our uber-webmap-client ;)
It works like this:
The feature is requested from geoserver as a GML. The GML is double
rendered: as a line and as a series of circles. On each circle there are
eventhandlers on mouseover,-out,-down,-up Depending if the add/delete
point function is enabled they behave differently (add a point, remove a
point, move a point). On the mouseup event the GML is updated and the
line is drawn again.
My question is if this can be done with canvas as well, since putting
eventhandlers on lines/points etc proves to be a very easy way to modify
features.
The essential (very hackish) code is in
http://svn.codehaus.org/mapbuilder/sandbox/steven/FeatureEditing/
Steven
--
Geodan S&R Amsterdam
-------------------------------------
Geodan S&R
President Kennedylaan 1
1079 MB Amsterdam (NL)
-------------------------------------
Tel: +31 (0)20 - 5711 311
Fax: +31 (0)20 - 5711 333
-------------------------------------
E-mail: steven.ottens at geodan.nl
Website: www.geodan.nl
Disclaimer: www.geodan.nl/disclaimer
-------------------------------------
More information about the Mail_webmap-discuss
mailing list