Commit af656bf
authored
### Motivation
As a Basemaps user, I would like to see labels when I arrive at the site
so I can see the context of the imagery displayed to me.
### Modifications
- Updated the **landing** package so that labels are enabled upon first
visit to the site via the default Basemaps URL
(https://basemaps.linz.govt.nz).
Situations where labels are **not enabled** upon first visit:
- The `labels` URL query string is `false`, e.g.
https://basemaps.linz.govt.nz/?labels=false
- The `debug` URL query string is present, e.g.
https://basemaps.linz.govt.nz/?debug
### Verification
- Added additional tests to the **landing** package's `map.config.test`
test suite.
#### Labels should be enabled
| https://basemaps.linz.govt.nz |
| - |
| ![][default] |
| Viewing the **aerial** layer and not in debug mode. Enable labels upon
first visit. |
#### Labels should be disabled
| https://basemaps.linz.govt.nz/?labels=false |
| - |
| ![][labels=false] |
| The `labels` query string is present and equals `false`. Don't enable
labels upon first visit. |
| https://basemaps.linz.govt.nz/?debug |
| - |
| ![][debug] |
| In debug mode. Don't enable labels upon first visit. |
| https://basemaps.linz.govt.nz/?i=ashburton-2023-0.1m |
| - |
| ![][individual_layer] |
| _Adjusted viewport to show imagery_ |
| Not viewing the `aerial` layer. Don't enable labels upon first visit.
|
---
Resolves bug:
[BM-1114](https://toitutewhenua.atlassian.net/browse/BM-1114)
[default]:
https://github.com/user-attachments/assets/1b450c01-3409-400e-b794-6eccc6582021
[labels=false]:
https://github.com/user-attachments/assets/2ca74653-d868-4420-8fd4-4e22273efa7d
[debug]:
https://github.com/user-attachments/assets/462ac80d-a603-47a7-9b9b-683b59988521
[individual_layer]:
https://github.com/user-attachments/assets/bac0f8a7-9a67-4683-880b-5a5fe484ae8b
[BM-1114]:
https://toitutewhenua.atlassian.net/browse/BM-1114?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
1 parent dcc8a9b commit af656bf
File tree
2 files changed
+53
-3
lines changed- packages/landing/src
- __tests__
2 files changed
+53
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
177 | 223 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
149 | 153 | | |
150 | 154 | | |
151 | 155 | | |
| |||
0 commit comments