[webmap-discuss] vector editing movie

Cameron Shorter cameron.shorter at gmail.com
Fri Nov 3 19:47:44 EST 2006


Steven,
My understanding is that canvas is faster than SVG, but doesn't provide 
mouseEvents for each feature.

Paul Spencer was considering writing a featureSearch algorithm to 
similar the featureEvents you get from SVG/VML.

Steven M. Ottens wrote:
> 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
> 


-- 
Cameron Shorter
http://cameron.shorter.net




More information about the Webmap-discuss mailing list