Maps4HTML / Web-Map-Custom-Element

A custom <mapml-viewer> and <layer-> element suite
https://maps4html.org/Web-Map-Custom-Element/
Other
54 stars 15 forks source link

map-link #915

Closed prushforth closed 4 months ago

prushforth commented 8 months ago
prushforth commented 7 months ago

implement map-link[rel=self style] media query for automatically selecting the layer style that the user prefers. We could fire the changestyle event and reject the initialization promise, set the src in the rejection handler just as we do for changeprojection.

Currently the changestyle event happens based on a user selection, but it could happen based on an automatic selection made for the user via their stated map content preference.