Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
### 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
- Loading branch information