Skip to content

Simplify layers - #4

Merged
coat merged 4 commits into
mainfrom
simplify-layers
Apr 9, 2026
Merged

coat merged 4 commits into
mainfrom
simplify-layers

Conversation

@coat

@coat coat commented Apr 5, 2026 •

Copy link
Copy Markdown
Owner

Use just one list of layers, we can iterate over the layers hashmap values for searching by other values (like class).

This is a breaking change as it removes layers_by_name. I recommend replacing access to layers_by_name:

const layer = map.layers_by_name.get("ground");

with the findLayer method:

const layer = map.findLayer("ground");

@codecov-commenter

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

@coat
coat force-pushed the simplify-layers branch 2 times, most recently from def3b9b to ac75103 Compare April 5, 2026 17:57
@coat coat self-assigned this Apr 5, 2026
@coat
coat force-pushed the simplify-layers branch from ac75103 to b16ab74 Compare April 8, 2026 23:40
@coat
coat merged commit 694b0de into main Apr 9, 2026
4 checks passed
@coat
coat deleted the simplify-layers branch April 10, 2026 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants