[OSM-dev] [OSM-talk] osmabrowser -- test now on other browsers?
Nick Whitelegg
nick at hogweed.org
Sat Oct 7 13:16:23 BST 2006
On Saturday 07 Oct 2006 12:38, you wrote:
> Nick Whitelegg wrote:
> >> Nick Whitelegg wrote:
> >> > I *may* have corrected what was causing problems with osmabrowser on
> >> > browsers other than Firefox 1.5. Namely, the mime type wasn't set
> >> > correctly - for SVG it should be image/svg+xml, not text/xml.
> >> >
> >> > I can test on IE tomorrow but would appreciate tests on other browsers
> >> > e.g. Konqueror (still doesn't work on 3.3.4 but I'm guessing that's
> >> > because SVG was only supported with more recent versions)
> >>
> >> Konqueror 3.3.5 I get error
> >> "A legal svg document requires a <svg> root element
> >
> > Not sure why I get this - it does have an svg root element! Anyone...
>
> Should be Konqueror 3.5.5..
> http://www.w3.org/TR/SVG/struct.html#NewDocument
>
> <!-- parent contents here -->
> <svg:svg width="4cm" height="8cm" version="1.1">
> <svg:ellipse cx="2cm" cy="4cm" rx="2cm" ry="1cm" />
> </svg:svg>
>
> <svg width="5cm" height="4cm" version="1.1"
> xmlns="http://www.w3.org/2000/svg">
> </svg>
>
> I have never seen svg but maybe this is missing..
> tpjohthe:/tmp$ grep "<svg "
> gensvg.php\?bbox\=-0.75\,51.0125\,-0.7\,51.0375\&scale\=1 tpjohthe:/tmp$
> grep "<svg:svg" gensvg.php\?bbox\=-0.75\,51.0125\,-0.7\,51.0375\&scale\=1
That's probably because gensvg.php dynamically generates an
osm-map-features.xml file, using the live API with the supplied bounding box
as the data source.
The XSL is then applied to this, generating the SVG in-browser.
Might be better to set the mime type to text/xml after all, as that's what's
sent back from the server originally. Have done that. Does it work now?
Nick
More information about the dev
mailing list