Opened 8 years ago

Closed 8 years ago

#3866 closed defect (wontfix)

SVG mime type

Reported by: j.chetwynd@… Owned by: Tom Hughes
Priority: minor Milestone:
Component: admin Version:
Keywords: Cc:

Description

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

Change History (2)

comment:1 Changed 8 years ago by j.chetwynd@…

comment:2 Changed 8 years ago by Tom Hughes

Resolution: wontfix
Status: newclosed

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.

Note: See TracTickets for help on using tickets.