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

feat: adds basic support for vector tiles / mapbox-style layers #869

Merged
merged 2 commits into from
Jan 10, 2025

Conversation

ahennr
Copy link
Member

@ahennr ahennr commented Jan 10, 2025

This PR is based on the work of @dnlkoch in #422 and the feature added for ol7 maintenance branch #658

Plz review @terrestris/devs

@ahennr ahennr changed the title feat: adds basic support for vector tiles / mapbox-style layrs feat: adds basic support for vector tiles / mapbox-style layers Jan 10, 2025
Copy link
Member

@simonseyock simonseyock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Comment on lines 741 to 752
private forEachLayer(groupLayer: OlLayerGroup, callback: (layer: OlLayer) => void) {
groupLayer.getLayers().forEach(childLayer => {
if (childLayer instanceof OlLayerGroup) {
this.forEachLayer(childLayer, callback);
}

if (childLayer instanceof OlLayer) {
callback(childLayer);
}
});
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this function used for?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, this function is currently not used and can be removed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see 4c4e4d6

@ahennr ahennr merged commit f2fc38f into main Jan 10, 2025
1 check passed
@ahennr ahennr deleted the mapbox-style-ol10 branch January 10, 2025 12:35
Copy link

🎉 This PR is included in version 10.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants