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 userProperties to midpoints and vertices #846

Open
drewbo opened this issue Dec 13, 2018 · 9 comments · May be fixed by #964
Open

Pass userProperties to midpoints and vertices #846

drewbo opened this issue Dec 13, 2018 · 9 comments · May be fixed by #964
Labels
api API & programatically working with library feature has PR

Comments

@drewbo
Copy link
Contributor

drewbo commented Dec 13, 2018

On creation of a midpoint or a vertex, the new feature is initialized with a reference to the parent feature but none of the properties are passed down. This means that midpoints and vertices can't be styled based on user-provided properties. I'd like to work up a PR where the user-provided properties are passed down to these features for potential styling. Thoughts?

Parent references:

drewbo added a commit to drewbo/mapbox-gl-draw that referenced this issue Dec 13, 2018
drewbo added a commit to drewbo/mapbox-gl-draw that referenced this issue Dec 14, 2018
@awulkan
Copy link
Contributor

awulkan commented Apr 25, 2019

Just spent a bunch of time trying to figure out why userProperties had no effect on my midpoint/vertex layers, I guess this is why. I would greatly appreciate having support for userProperties on these layers.

@helenezspeer
Copy link

@drewbo Have you submitted a PR for this issue? I'd love a solution to this problem as well.

@awulkan
Copy link
Contributor

awulkan commented Oct 28, 2019

Hello again, has there been any progress made regarding this? It would be really nice to get this functionality into Mapbox Draw.

@awulkan
Copy link
Contributor

awulkan commented Oct 31, 2019

@helenezspeer, the pull request is being tracked here: #847
There are now two code implementations for this feature.

@kkaefer kkaefer added api API & programatically working with library feature has PR labels Jan 7, 2020
@JamesLMilner
Copy link

Just to throw some weight into this, it would be great to get this feature landed as without it I'm not sure there's a way to style custom midpoints and vertices.

If the issue is not having an up-to-date PR I would potentially be able to take a look at updating @drewbo's PR here.

@drewbo
Copy link
Contributor Author

drewbo commented Feb 11, 2020

Hi @JamesLMilner ! Yeah, if you could take a look that would be great; it was working at the time I wrote it (I used the fork for a separate project) but I think still probably needs to love to get up to date (although maybe @awulkan resolved)

@asheemmamoowala
Copy link
Contributor

@JamesLMilner an updated PR would be great!

@JamesLMilner
Copy link

JamesLMilner commented Feb 12, 2020

@drewbo @asheemmamoowala thanks for your swift responses. A new PR sounds good to me, I will raise it as soon as I get a moment.

JamesLMilner pushed a commit to JamesLMilner/mapbox-gl-draw that referenced this issue Feb 12, 2020
@JamesLMilner JamesLMilner linked a pull request Feb 12, 2020 that will close this issue
@JamesLMilner
Copy link

@drewbo @asheemmamoowala I've raised this up to date with master here: #964

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api API & programatically working with library feature has PR
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants