-
Notifications
You must be signed in to change notification settings - Fork 122
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
Vector text over layers #687
Comments
It has to do with label decluttering, and it is expected behavior. Labels and symbols of all layers with the same For a long time, I have been wanting to give |
@ahocevar I've been digging into code to better understand this limitation (and possibly help resolve), but without general documentation on the code structure, I'm having to piece together a few parts...it looks like the |
Hello, @ahocevar --I was pulled away from this project since I last updated, but back at it again. Getting this resolved is one of the top-most concerns for National Weather Service given the titles overlay the radar raster layers that are considered critical. Happy to do most of the work, but any pointers on where you would implement |
@scadergit Thanks for willing to help here! Take a look at the API wise, this could then look something like const layers = [
new VectorLayer({
declutterGroup: 'group1',
// ...
}),
new VectorTileLayer({
declutterGroup: 'group1',
// ...
}),
new TileLeyer({
// ...
})
]; With the So the In ol-mapbox-style, I'm not sure what the best way to configure that would be. If you're able to put the raster layer in a separate Mapbox style, I think it would make sense to render each Mapbox style with a |
Appreciate the generous direction. I'll get my head back in the game next week and see what I can flush out. |
A draft pull to review: #911 @ahocevar after falling into renderer and execute rabbit holes to better understand the flow, I stepped back and made the change as you suggested. Please refer to the openlayers pull noted above. Thoughts on the implmentation (aside from the temporary console logs)? Nothing fancy, let me know if it needs refinement. |
I didn't find an answer on google, so asking here...it appears OpenLayers is rendering the text of the vector layer
>>>> topographic (mapbox)
over thenational
(radar...green-ish squares) layer (group), that the console output verifies is later (or above) the vector layer (group). Is that expected behavior of OpenLayers and/or ol-mapbox-style, or something I should investigate?The text was updated successfully, but these errors were encountered: