Maps4HTML / MapML-Specification

Map Markup Language is hypertext for Web maps, like HTML is hypertext for Web pages https://maps4html.org/MapML-Specification/spec/
Other
55 stars 12 forks source link

What is the MIME type of MapML #31

Closed joanma747 closed 4 years ago

joanma747 commented 6 years ago

I have found that in this example https://github.com/w3c/sdw/issues/1058 you are using "text/mapml" but I do not see this mentioned in the specification https://maps4html.github.io/MapML/spec.

This is not my only problem: I was writing a OpenAPI document of a service (actually and API) that will return a MapML and I should provide a MIME type and an schema!!.

prushforth commented 6 years ago

There are RelaxNG and schematron files that validate MapML to the current spec (I believe) in the schema subdirectory of this repo

prushforth commented 6 years ago

Although I haven't registered the media type yet, as we haven't got agreement between W3C and OGC on this format, I expect to register it as "text/mapml". The registration process is demanding though, especially since we will need to consider security implications of the format, which if implemented in a browser could be non-trivial. Not that they will be a show stopper, IMHO, but it needs to be taken seriously. The first step I believe is getting MapML into the WICG incubation process, somehow. We're still working on that. In the meantime, I don't think it will hurt to use "text/mapml" in Accept: and Content-Type: headers.

Malvoz commented 4 years ago

Closing in favor of https://github.com/Maps4HTML/MapML/issues/139.