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

Pass feat.type in styleOptions #130

Merged
merged 8 commits into from
Mar 10, 2018

Conversation

tomchadwin
Copy link
Collaborator

This then allows differentiation of styles with the same VT layer name.

Discussed here: #125

@IvanSanchez IvanSanchez merged commit b8d573a into Leaflet:master Mar 10, 2018
@SureSRM
Copy link

SureSRM commented Oct 18, 2019

Hi, I'm a bit confused. I wanted to use this functionality that I saw in the documentation but it's not available. I've researched the commit history and looks like the commit made right after this one (this commit #151), overwrited the argument passing that you made.

It is still missing in the master branch:

if (styleOptions instanceof Function) {
styleOptions = styleOptions(feat.properties, coords.z);
}

Sorry if I'm missing something or this is not the place to post this. I just wanted to know what happened with this feature.

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.

3 participants