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

fix(Vector tiles): l'ordre des couches n'est pas respecté #58

Open
azarz opened this issue May 28, 2024 · 2 comments
Open

fix(Vector tiles): l'ordre des couches n'est pas respecté #58

azarz opened this issue May 28, 2024 · 2 comments
Assignees

Comments

@azarz
Copy link
Member

azarz commented May 28, 2024

Pour reproduire:

  • importer un fichier de style json (gris.json), la couche s'affiche en haut.
  • ouvrir le layer switcher
  • mettre les tuiles vecteur sous plan IGN v2

Les toponymes restent au-dessus du plan
image

@lowzonenose
Copy link
Collaborator

lowzonenose commented Jun 4, 2024

Souci avec le paramètre declutter : doit on l'activer par defaut ?

Decluttering is used to avoid overlapping labels. The overflow: true setting on the text style makes it so labels that do not fit within the bounds of a polygon are also considered for decluttering.

Different truthy declutter values enable declutter groups. If declutter was set to true on the vector layer in this example, the symbol and texts of the vector layer would prevent overlapping symbols and texts from the Mapbox styled layers below. Because it is set to "separate", which is a different value than true, the vector layer is decluttered separate from the Mapbox styled layers below. Symbols and texts of the Mapbox styled layers below can overlap those of the vector layer.

  • declutter : false
    image
    image

les labels sont coupés par la tuile, et ils sont correctement groupés dans leur couche respective

  • declutter : true
    image
    image

les labels sont correctement visibles sur le bord des tuiles, mais ils ne sont pas regroupés dans leur couche respective

@lowzonenose
Copy link
Collaborator

Pour test du param declutter et overflow :
cf. https://openlayers.org/en/latest/examples/vector-label-decluttering.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants