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

Use map projection attribute as fallback projection for a layer if the layer does not specify a projection #677

Closed
prushforth opened this issue Aug 3, 2022 · 1 comment

Comments

@prushforth
Copy link
Member

prushforth commented Aug 3, 2022

A layer can have a single or a few feature(s) in it, and sometimes it would be developer-friendly to not have to specify the projection via a map-meta element, or even as is sometimes seen (MapServer?) via the text/mapml MIME type projection parameter. It would be developer friendly to allow that layer to just assume that the projection is compatible with the <mapml-viewer projection="value"...> and try that. If it renders, that's good, otherwise it might become a disabled (inert) layer until DOM changes occur that make it not disabled.

Edit: it might not work, but it's worth a try.

@yhy0217
Copy link
Contributor

yhy0217 commented Nov 8, 2023

Resolved in #854

There is a remaining bug for map projection, see #899

@yhy0217 yhy0217 closed this as completed Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants