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

BS5: migration follow up #4825

Open
wants to merge 6,302 commits into
base: master
Choose a base branch
from

Conversation

nboisteault
Copy link
Member

Funded by 3Liz

nboisteault and others added 30 commits July 16, 2024 11:45
Fix: update `refresh data` button and fix export
Fix: avoid zoom to initial extent on window resize
fixes 3liz#4332

Currently, if the map allows you to go beyond the min/zoom resolution of a WMTS or XYZ source, Lizmap won't display anything beyond this min/zoom resolution.

OpenLayers is able to do resampling. This can be seen when you zoom in progressively. OpenLayers must be forced to use the max zoom of the grid even when the user goes beyond it.

The solution is described on stackoverflow https://stackoverflow.com/questions/43538345/how-to-force-load-tiles-for-lower-resolution and is based on `TileGrid`'s `getZForResolution` method https://github.com/openlayers/openlayers/blob/main/src/ol/tilegrid/TileGrid.js#L634

```js
  getZForResolution(resolution, opt_direction) {
    const z = linearFindNearest(
      this.resolutions_,
      resolution,
      opt_direction || 0,
    );
    return clamp(z, this.minZoom, this.maxZoom);
  }
```

This method is based on the `this.resolutions_` list of grid resolutions. The index of the resolution closest to that in parameter is then set to the min or max zoom value.

So if `this.resolutions_` contains 24 values but maxZoom is 19, then when the map is at levels 20, 21, 22, 23 and 24, the grid will limit queries to zoom 19.

Funded by FM Projet
Generic method to build scales based on options config.
* Native EPSG:3857 scales
* Tiles resolutions
…yers

Fix JS XYZ Grid Tile and Tests e2e playwrigth: enhancing base layers tests
In some project the WMS Extent property of the project is empty.

Funded by SETEC
Update attribute table project and e2e test to check table column order based on QGIS attribute table config.
Gustry and others added 20 commits September 30, 2024 09:43
UX - Provide a HTTP link about the main plugin homepage/help
Fix: allow tiled wms when `singleTile` is `false` and layer is not ca…
Tests - Improve Playwright helper to load a project with error
Tests - Add E2E test about user defined JavaScript warning
* fix typo, improve html for module view

* declare Url repositoryAdmin liz global lizUrl

* plugin homepage must be non empty to do a link

* fix end2end modules line count
@github-actions github-actions bot added this to the 3.9.0 milestone Oct 1, 2024
@nboisteault nboisteault added the run end2end If the PR must run end2end tests or not label Oct 1, 2024
@nboisteault nboisteault changed the title BS5: add form-select class to <select> BS5: migration follow up Oct 1, 2024
@nboisteault nboisteault added run end2end If the PR must run end2end tests or not and removed run end2end If the PR must run end2end tests or not labels Oct 4, 2024
@Gustry Gustry modified the milestones: 3.9.0, 3.10.0 Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run end2end If the PR must run end2end tests or not
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants