Commit df7719c
matchMedia API, media attribute experiments (#140)
* WIP on matchMedia experiments
* add dark-mode-for-reference, empty media-attribute folder for future use
* Modified index.html for preferred-color-schemes
* Add event handler to map.matchMedia result, allowing map to select the
light/dark layer appropriate to the system color mode (light/dark).
* Added page for preferred map-projection
* Update map-projection media query experiment.
Revert change to color-scheme experiment.
* Fix match-media experiments to work on maps4html.org
* Add prefers-lang matchMedia experiment
* Updated experiments
* Add prefers-lang experiment
* Added experiment for map-zoom
* Added description for map-zoom
* Added experiment for getting bounding box
* Edited descriptions
* Re-structure the experiments for media queries, add index pages
* Update / add map-projection match-media experiment description
* WIP for prefers-map-content
* Update match-media prefers-map-content experiment. questions around
image vs tile usefulness of distinction between
* Update match-media map-projection query experiment description
* Move features layer to top
* Update map-projection media query description
* Remove empty style media attribute
* Add human-generated description of probability for 2000-08-15 to
features. Add msi-tables directory with images to be described,
by a human, because ChatGPT makes up stuff. Tables should be integrated
not sure how, into page.
* Hide mapml-viewer when prefers-content-type includes table
* Add sub-folders for prefers-map-content matchMedia experiments:
one for selecting map-layer, other for selecting map-link, using
map-link.disabled property
* Add media-attribute directory, copy and modify some of the match-media
experiments for this purpose.
* Re-structure the media-queries directory
* Update media-attribute experiments. To do: update text descriptions to
highlight that they're for media attribute, not matchMedia API.
* Update zoomin/zoomout experiment to use media attribute
* fixed flexbox design
* WIP on zoomin-zoomout experiment
TO Do: make it change projection and layers at certain inflection pts
tbd if that should happen automatically because there is only 1 layer
"on the map" when mutually exclusive map-zoom media queries control
what layers are "on the map".
* WIP on zoomin-zoomout experiment
Fiddling with changing projection at inflection points. Not working
too well, actually.
tbd if that should happen automatically because there is only 1 layer
"on the map" when mutually exclusive map-zoom media queries control
what layers are "on the map".
the map.layers collection always has 4 layers, regardless of their
_mql.matches value.
Move projection definitions into their own module files. tbd how to
calculate an integrity value for them.
* Add integrity to custom projection script tags
* Update zoomin-zoomout experiment
* Update zoomin-zoomout experiment for web-map use case
* Update dark-mode experiment
* Update dark-mode experiment
---------
Co-authored-by: prushfor <prushfor@L-BSC-A146390.nrn.nrcan.gc.ca>
Co-authored-by: Yushan Mu <yueyue0272@gmail.com>1 parent 4f1ab0a commit df7719c
File tree
213 files changed
+9336
-321
lines changed- change-projection/zoomin-zoomout
- mapml-viewer
- projections
- web-map
- linking/zoomin-zoomout
- mapml-viewer
- styling
- dark-mode
- media-queries
- match-media
- map-bounding-box
- map-projection
- map-zoom
- prefers-color-scheme
- prefers-lang
- prefers-map-content
- map-layer
- map-link
- msi-tables
- 2000
- 2001
- 2002
- 2003
- 2004
- 2005
- 2006
- 2007
- 2008
- 2009
- 2010
- 2011
- 2012
- 2013
- 2014
- 2015
- 2016
- 2017
- 2018
- 2019
- 2020
- media-attribute
- map-bounding-box
- map-projection
- map-layer
- map-link
- map-zoom/map-link-stylesheet
- prefers-color-scheme
- prefers-lang
- prefers-map-content
- map-layer
- map-link
- msi-tables
- 2000
- 2001
- 2002
- 2003
- 2004
- 2005
- 2006
- 2007
- 2008
- 2009
- 2010
- 2011
- 2012
- 2013
- 2014
- 2015
- 2016
- 2017
- 2018
- 2019
- 2020
- vector-tiles/pmtiles
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
213 files changed
+9336
-321
lines changedLines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | 7 | | |
10 | 8 | | |
11 | 9 | | |
| |||
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
18 | | - | |
| 16 | + | |
19 | 17 | | |
20 | 18 | | |
21 | 19 | | |
| |||
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
| |||
18 | 16 | | |
19 | 17 | | |
20 | 18 | | |
21 | | - | |
| 19 | + | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
| |||
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | 6 | | |
9 | 7 | | |
10 | 8 | | |
11 | | - | |
| 9 | + | |
12 | 10 | | |
13 | 11 | | |
14 | 12 | | |
| |||
Lines changed: 21 additions & 40 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 9 | + | |
| 10 | + | |
48 | 11 | | |
49 | 12 | | |
50 | 13 | | |
51 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
52 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
53 | 34 | | |
54 | 35 | | |
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | | - | |
| 9 | + | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 9 | + | |
| 10 | + | |
48 | 11 | | |
49 | 12 | | |
50 | 13 | | |
51 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
52 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
53 | 34 | | |
54 | 35 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | 6 | | |
10 | 7 | | |
11 | 8 | | |
12 | | - | |
| 9 | + | |
13 | 10 | | |
14 | 11 | | |
15 | | - | |
16 | | - | |
| 12 | + | |
| 13 | + | |
17 | 14 | | |
18 | 15 | | |
19 | 16 | | |
0 commit comments