-
Notifications
You must be signed in to change notification settings - Fork 502
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
Full source support #797
Full source support #797
Conversation
How's it going? Very interested in those features! |
might be able to work on this next week - let's see |
That would be awesome! |
you are a gem @felix-ht, let me know if you want to divide the work, happy to help out |
I added a working example for the web version - |
So iOS Android and web are now able to show all sources, and working as expected. One thing currently still missing is the option to add an image as raw bytes. This is not part of the normal style spec, and also not supported on web. So im not sure if i should even add it. Might be more elegant to rely on local - (file) uris to load assets? @tobrun I will do some cleanup besides that and remove the draft status afterwards. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
amazing work @felix-ht
Great! Now we only need some proper examples and guides, on how to achieve e.g. clustering with this plugin :D |
@kamami there are pretty decent examples for all source types (and clustering) examples in |
@felix-ht I cant figure out how to style the none clustered points like in the example given for android: https://docs.mapbox.com/ios/legacy/maps/examples/clustering/?q=attribution&size=n_10_n Is there something similiar to predicates? Or am i missing something out? Thank you! |
@laudaget layers currently don't support filtering - so no. Please create a separate ticket for this tho. |
@felix-ht I am now exploring this new feature and implement clustering in my app. I have tried removing the source because I have points changing for clustering when camera moves, but got an error |
Removing all layers first helped, but probably
Is it safe then later to call |
yes that should be save - as far as i know. I will only change the geojson data - the options should remain untouched. |
I'm currently working on fully supporting all types of sources. Related to #758.
Doing this now because i started to look at adding raster layer and doing this without code gen seemed like a bad idea, so i might as well go all the way.
This includes supporting everything in the style spec with relation to sources
This will also add support for clustering, as this is part of the source spec. #752
Todo:
- [ ] better code gen for dart (required args - args that are not nullable)This will take some to until it lands (as im not working full-time on this, but should be this year), but I wanted to add this early as a draft. Most of the code is subject to change. So feel free to take a look, but no need to review as of now.