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

[MapModel]: Add "highlightLayer" concept #302

Open
mbeckem opened this issue Apr 11, 2024 · 0 comments
Open

[MapModel]: Add "highlightLayer" concept #302

mbeckem opened this issue Apr 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mbeckem
Copy link
Contributor

mbeckem commented Apr 11, 2024

Temporary graphics layers such as the measurement vector layer or the geolocation highlight use a custom layer and add it to the OpenLayers map via olMap.addLayer.

Care must currently be taken here to make sure that the new layer is really added on top of all other operation layers (timing might be a problem here if the map model is still initializing). The current solution is to set the z-index to a very high value; however this should only be used internally and may be difficult to maintain in the future.

A better solution would add a new interface to the map model: mapModel.addHighlightLayer that automatically adds an (anonymous) layer to the top of all operational layers.

Edit: because we are using z-index for our operational layers, all anonymous layer must have a z index as well (the default z-index is 0 which would result in them being at the bottom)

@mbeckem mbeckem added the enhancement New feature or request label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant