[Openstreetmap] Re: tracklog with voice commentary.
Jim Ley
jim at jibbering.com
Fri Sep 30 10:46:56 BST 2005
<nick at hogweed.org> wrote in message
news:200509301135.32726.nick at hogweed.org...
>> I also want to look at an svg/vml in browser editor, I don't think it
>> should be too hard, as the java applet doesn't work for me, and
>> osm-editor
>> is linux only :-(
>
> With regard to an in-browser editor, have you heard of the new <canvas>
> tag in
> Firefox 1.5? That could potentially make development of such an
> application
> (in non-IE browsers at least, Apple's Safari and I believe, Opera are to
> support it) easy; indeed, easier than SVG as DOM manipulation is not
> required
> - just one method call to draw a line, by the looks of it.
Immediate mode drawing is not actually that useful for this kind of
application I think, or indeed many on the web - IE has had immediate mode
2d and 3d since IE4, no-one ever uses it even in IE monocultures because
it's not all that useful.
The big problem with creating an editor in canvas is that you have to do all
the mouse click tracking to calculate which point/road/region etc. is being
clicked on - with the DOM approaches you just add an onclick to a line or
point and get it all for free. The code overhead of drawing a line in SVG
rather than canvas are 2 lines of code, so really not that relevant. It
will also mean it can easily be made to work in IE - either via the ASV
plugin or using VML which shares all the same line drawing capabilities.
IE's immediate mode is very different from canvas.
I could also put the SVG one directly on my phone for the editing :-)
Cheers,
Jim.
More information about the talk
mailing list