Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

SVG mime type #3866

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments
Closed

SVG mime type #3866

openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments

Comments

@openstreetmap-trac
Copy link

Reporter: j.chetwynd[at]btinternet.com
[Submitted to the original trac issue database at 1.32pm, Sunday, 26th June 2011]

All major browsers now support SVG natively.
mapnik is not currently served with the correct mime type, and hence is saved top disk, rather than rendered in the browser

@openstreetmap-trac
Copy link
Author

Author: j.chetwynd[at]btinternet.com
[Added to the original trac issue at 7.36am, Monday, 27th June 2011]

similarly maperitive.net serves files with the wrong mimetype:
http://planetsvg.com/tools/mime.php?url=http%3A%2F%2Fmaperitive.net%2Fsamples%2FDublin_center_AI.svgz

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 7.42am, Monday, 27th June 2011]

I assume you are talking about the results of the export tab on the home page? If so then that is served as image/svg+xml which I believe to be the correct type - certainly it is what is listed in my mime.types file. If you have a source that says it should be something else then please let me know.

What you are seeing is not the result of the mime type being wrong, it's the result of us deliberately sending a Content-Disposition header with all the exports because they are intended to be exporting a map to disk, not rendering it in the browser. In addition to which most browsers would choke on the quantity of SVG that a typical map export involves so letting the browser try and render it is generally a bad idea.

Mapiteritive is nothing to do with us - you would need to report any issue you have with that to it's author.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant