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

Implement map content selection based on media queries associated to map-link #901

Open prushforth opened 9 months ago

prushforth commented 9 months ago

Implement ideas in https://github.com/Maps4HTML/HTML-Map-Element-UseCases-Requirements/issues/43 and https://github.com/Maps4HTML/Web-Map-Custom-Element/issues/546 and https://github.com/Maps4HTML/HTML-Map-Element-UseCases-Requirements/issues/256 Would likely replace announcing of location: per #552

prushforth commented 8 months ago

One relevant specification for this feature is Media Queries Level 5, which specifies a set of prefers- user preference related query features, although there seems to be some doubt as to their fitness for the Web.

None of the other media features seems to fit with the core requirement here, and media types seem to be deprecated.

I propose to prototype a prefers-map-content or similar construct, with a set of values that we should discuss below.

Inital thoughts on domain of values for prefers-map-content

prushforth commented 8 months ago

Other potentially useful media features and possible values and types map-projection: OSMTILE, CBMTILE, WGS84, custom, discrete map-zoom: \, range type map-scale: \, range type

prushforth commented 8 months ago

Media query parser implementationss: https://github.com/tbjgolden/media-query-parser and https://github.com/csstools/postcss-plugins/tree/main/packages/media-query-list-parser