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

[TOC] Show hints for unavailable layers #237

Merged
merged 61 commits into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
10fbed0
WIP: Show unavailable layers in TOC UI (#6)
mathe05 Nov 20, 2023
6207de6
prettier and add sample in app
antoniave Nov 21, 2023
02a6b57
Remove readonly from healthCheckURL
mathe05 Nov 21, 2023
b742a87
Simplify if
mathe05 Nov 21, 2023
8c6d664
Health check only once during initialization
mathe05 Nov 21, 2023
2ce22d1
Health check not needed when OL already returning error
mathe05 Nov 21, 2023
0f69b05
fix WMSLayerConfig interface: now extends LayerBaseConfig
antoniave Nov 21, 2023
18c7868
Enable providing a function for health check
mathe05 Nov 21, 2023
0656698
Make health check async
mathe05 Nov 22, 2023
3d5cf17
Implement health check by requesting URL
mathe05 Nov 23, 2023
7815f17
Make custom health check really async
mathe05 Nov 24, 2023
38ed731
Updating sublayers already working, remove comment
mathe05 Nov 24, 2023
325d46e
introduce type for layer types used in the toc; remove filtering of L…
antoniave Nov 24, 2023
1f0b6c2
Show tooltip in toc and add aria-label
mathe05 Nov 27, 2023
65452f6
Consider not available layers in basemap switcher
mathe05 Nov 27, 2023
921c4d2
Hide unavailable layers
mathe05 Nov 27, 2023
9c592dd
Fix whitespace at end of line
mathe05 Nov 28, 2023
f848ce6
Fix passing intl string to function
mathe05 Nov 28, 2023
285b699
Switch baselayer when current baselayer becomes unavailable
mathe05 Nov 28, 2023
8347668
Rebuild basemap switcher: options as separate components to update on…
mathe05 Nov 28, 2023
f8cff61
Emit event after switching to another basemap to update basemap switcher
mathe05 Nov 28, 2023
d04d276
Replace HTML select by react-select in BasemapSwitcher
mathe05 Dec 5, 2023
85a7925
Update pnpm-lock
mathe05 Dec 5, 2023
9eca77d
Code cleanup
mathe05 Dec 5, 2023
de19beb
Prettier and add className to BasemapSwitcher option
mathe05 Dec 6, 2023
1cfd291
Replace   with Box and margin to avoid whitespace at end of inne…
mathe05 Dec 6, 2023
d3a36ba
Repair BasemapSwitcher tests
mathe05 Dec 7, 2023
8dbbf06
Repair Toc tests
mathe05 Dec 8, 2023
abacbbc
Add missing react-icons dependency to package.json in BasemapSwitcher
mathe05 Dec 8, 2023
b0d8068
Update pnpm -lock.yaml
mathe05 Dec 8, 2023
087551c
hide layer when initial state is error
mathe05 Dec 8, 2023
d615984
remove comment
mathe05 Dec 8, 2023
b117968
simplify redundant code
mathe05 Dec 8, 2023
d53a32f
Add tests for AbstractLayer health check
mathe05 Dec 8, 2023
b279fc5
Add tests for LayerCollectionImpl loadState event
mathe05 Dec 11, 2023
1ae9658
Add class names in LayerList
mathe05 Dec 11, 2023
c4d5bee
Add tests for LayerList changes of load state
mathe05 Dec 11, 2023
cb566b8
Add tests for BasemapSwitcher: empty basemap not per default
mathe05 Dec 11, 2023
64c0075
Add tests for BasemapSwitcher: fallback to empty basemap when layer h…
mathe05 Dec 11, 2023
c957e9b
Add tests for BasemapSwitcher: disable unavailable layers for selecti…
mathe05 Dec 11, 2023
ff2787f
Code review: wrap a few pieces with useMemo() and provide detailed cs…
mbeckem Dec 12, 2023
fc70ecb
Simplify tests a bit
mbeckem Dec 12, 2023
c6c3e12
Improve tests a bit
mbeckem Dec 12, 2023
f034acd
Disabling visibility only possible and necessary for non-baselayers
mathe05 Dec 12, 2023
0785e4e
Remove tests from BasemapSwitcher that checks already tested basemap …
mathe05 Dec 12, 2023
ea944f5
BasemapSwitcher: remove logic and use active basemap from map model
mathe05 Dec 12, 2023
b33645c
Create new sample app for TOC and health check and remove unavailable…
mathe05 Dec 12, 2023
e5a8d30
Clean up event handlers
mathe05 Dec 14, 2023
b6609b0
Remove IntelliJ config and extend .gitignore
mathe05 Dec 14, 2023
343de7b
Remove automatically switching basemap or layer visibility
mathe05 Dec 15, 2023
4b81cb0
Fix accessibility in BasemapSwitcher and Toc
mathe05 Dec 15, 2023
f3c0386
Replace most snapshots in BasemapSwitcher tests by simpler checks and…
mathe05 Dec 15, 2023
10d1d74
Add accidentally removed disabling of unavailable operational layers …
mathe05 Dec 18, 2023
eabb6b5
Add documentation
mathe05 Dec 18, 2023
460522c
Update pnpm-lock.yaml
mathe05 Dec 18, 2023
7dfb758
Remove unused statement
mathe05 Dec 18, 2023
7faabef
Add missing import
mathe05 Dec 18, 2023
83bdf9e
Minor changes
mbeckem Dec 19, 2023
6495262
Merge remote-tracking branch 'origin/main' into feature/toc-unavailab…
mbeckem Dec 19, 2023
c9c5fe8
remove obsolete code; move options next to current value
mbeckem Dec 19, 2023
8bb1611
fix lockfile
mbeckem Dec 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ node_modules
*.sln
*.sw?
*.local
*.iml
48 changes: 48 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ <h2>Test applications</h2>
<br />
Test app for the basemap switcher.
</li>
<li>
<a href="./samples/test-toc/">TOC + Health Check</a>
<br />
Demonstrates the TOC and health check to detect unavailable services.
</li>
<li>
<a href="./samples/theming-sample/">Theming</a>
<br />
Expand Down
Loading