Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serialize alternate projection links for known applicable MapML: projections #82

Open
prushforth opened this issue Jan 10, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@prushforth
Copy link
Member

Related

Currently, 'well-known' MapML: authority projections are serialized as alternate projection links in each MapML document:

<map-link rel="alternate" projection="OSMTILE" href="https://example.org/geoserver/msc/wms?format_options=mapml-wms-format%3Aimage%2Fpng&request=GetMap&crs=MapML%3AOSMTILE&service=WMS&bbox=-1.9771353430346526E7%2C3550701.251005205%2C2.0000184074674536E7%2C1.8524695031846646E7&format=text%2Fmapml&layers=CURRENT_CONDITIONS&width=364&version=1.3.0&height=768"></map-link>
<map-link rel="alternate" projection="APSTILE" href="https://example.org/geoserver/msc/wms?format_options=mapml-wms-format%3Aimage%2Fpng&request=GetMap&crs=MapML%3AAPSTILE&service=WMS&bbox=-5266985.219718212%2C-5266985.219718212%2C9266985.219718212%2C9266985.219718212&format=text%2Fmapml&layers=CURRENT_CONDITIONS&width=364&version=1.3.0&height=768"></map-link>
<map-link rel="alternate" projection="WGS84" href="https://example.org/geoserver/msc/wms?format_options=mapml-wms-format%3Aimage%2Fpng&request=GetMap&crs=MapML%3AWGS84&service=WMS&bbox=-177.60908974209215%2C30.366141302758248%2C179.66471039483983%2C83.72878702993546&format=text%2Fmapml&layers=CURRENT_CONDITIONS&width=364&version=1.3.0&height=768"></map-link>

If there are custom MapML: authority projections defined by the local service, their alternate links should also be serialized alongside the pre-defined projections:

<map-link rel="alternate" projection="OSMTILE" href="https://example.org/geoserver/msc/wms?format_options=mapml-wms-format%3Aimage%2Fpng&request=GetMap&crs=MapML%3AOSMTILE&service=WMS&bbox=-1.9771353430346526E7%2C3550701.251005205%2C2.0000184074674536E7%2C1.8524695031846646E7&format=text%2Fmapml&layers=CURRENT_CONDITIONS&width=364&version=1.3.0&height=768"></map-link>
<map-link rel="alternate" projection="APSTILE" href="https://example.org/geoserver/msc/wms?format_options=mapml-wms-format%3Aimage%2Fpng&request=GetMap&crs=MapML%3AAPSTILE&service=WMS&bbox=-5266985.219718212%2C-5266985.219718212%2C9266985.219718212%2C9266985.219718212&format=text%2Fmapml&layers=CURRENT_CONDITIONS&width=364&version=1.3.0&height=768"></map-link>
<map-link rel="alternate" projection="WGS84" href="https://example.org/geoserver/msc/wms?format_options=mapml-wms-format%3Aimage%2Fpng&request=GetMap&crs=MapML%3AWGS84&service=WMS&bbox=-177.60908974209215%2C30.366141302758248%2C179.66471039483983%2C83.72878702993546&format=text%2Fmapml&layers=CURRENT_CONDITIONS&width=364&version=1.3.0&height=768"></map-link>

<map-link rel="alternate" projection="USNATATLAS" href="https://example.org/geoserver/msc/wms?format_options=mapml-wms-format%3Aimage%2Fpng&request=GetMap&crs=MapML%3AUSNATATLAS&service=WMS&bbox=-177.60908974209215%2C30.366141302758248%2C179.66471039483983%2C83.72878702993546&format=text%2Fmapml&layers=CURRENT_CONDITIONS&width=364&version=1.3.0&height=768"></map-link>
@prushforth prushforth added the enhancement New feature or request label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant