[OSM-dev] Fwd: [webmap-discuss] vector editing movie

Tom Carden tom at tom-carden.co.uk
Wed Nov 8 17:12:14 GMT 2006


Web editor folks may want to follow this discussion?

Cheers,

Tom.

---------- Forwarded message ----------
From: Steven M. Ottens <steven.ottens at geodan.nl>
Date: 03-Nov-2006 13:22
Subject: [webmap-discuss] vector editing movie
To: webmap-discuss at mail.osgeo.org


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
-------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: webmap-discuss-unsubscribe at mail.osgeo.org
For additional commands, e-mail: webmap-discuss-help at mail.osgeo.org




More information about the dev mailing list