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

First pass / rough draft of HTMLMapmlViewerElement.matchMedia API, #1008

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from

Commits on Nov 16, 2024

  1. First pass / rough draft of HTMLMapmlViewerElement.matchMedia API,

    depends on media-query-parser and media-query-solver.
    prushforth committed Nov 16, 2024
    Configuration menu
    Copy the full SHA
    e0fa9e8 View commit details
    Browse the repository at this point in the history
  2. Work through a few issues to get basic function of prefers-lang,

    prefers-color-scheme,map-projection,map-zoom working up to the initial
    matches.  Tbd if this will need modification to support dynamic
    evaluation of map properties to support attaching event handlers.
    
    Not yet determined: how to implement map-extent support, because media
    features are all either discrete or range types, and while it may
    be possible to implemnent a bbox using four corner values as the 
    pre-determined corners of the bbox, it is less clear how to represent
    a bbox as a media feature value, which does not typically contain 
    commas.
    prushforth committed Nov 16, 2024
    Configuration menu
    Copy the full SHA
    1f04681 View commit details
    Browse the repository at this point in the history
  3. Use multi-select values of contentPreference sent by mapml-extension

    (relies on M.options.contentPreference being an array).
    prushforth committed Nov 16, 2024
    Configuration menu
    Copy the full SHA
    1092339 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    29c9471 View commit details
    Browse the repository at this point in the history
  5. Fix function call

    prushforth committed Nov 16, 2024
    Configuration menu
    Copy the full SHA
    eee692c View commit details
    Browse the repository at this point in the history
  6. Typo

    prushforth committed Nov 16, 2024
    Configuration menu
    Copy the full SHA
    e2cadfd View commit details
    Browse the repository at this point in the history
  7. Make matchMedia features object return values via a property getter,

    allowing dynamic use of the object in event handlers.
    
    Add window.matchMedia query + event listener for color-scheme changes,
    allows map to adapt without having to shake it.
    prushforth committed Nov 16, 2024
    Configuration menu
    Copy the full SHA
    a6412d0 View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2024

  1. Configuration menu
    Copy the full SHA
    0c0c98c View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2024

  1. Configuration menu
    Copy the full SHA
    0bb6b19 View commit details
    Browse the repository at this point in the history
  2. Change the way prefers-lang selects the language (use navigator.langu…

    …age,
    
    not navigator.languages, because other values aren't of use).
    prushforth committed Nov 18, 2024
    Configuration menu
    Copy the full SHA
    c5cd7c8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    333112e View commit details
    Browse the repository at this point in the history