-
Notifications
You must be signed in to change notification settings - Fork 271
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
Updatable tiles #26
Comments
Adding data is relatively easy to add I think, the only problem I see will arise if we implement a sophisticated point filtering algorithm like the one described by @ericfischer. Removing data would require tagging every feature or geometry with ids, but is also possible. Not sure if it can be made fast though. |
For now I think it's fast enough to just retile everything when you change data, but still may be very useful in future. Do you have any particular live-data cases in mind? |
I am working on an approach now in the C++ port for live-adding and changing points and shapes as a means to add annotations to GL. Will report back on what this brings to light. |
The approach I'm using is to tile newly-added features, then iterate the tiles and add the tiled features over to some master tiles so as to not have to re-tile the existing features. I keep a reference to the added features around so when their corresponding data objects are removed, the features get pulled back off the master tiles. Also, in this system, tiles have layers. All points are added to a single point layer, and each shape is added to its own shape layer for overlay rearrangement purposes. I'll keep the rest of the progress over in mapbox/mapbox-gl-native#992, but just wanted to share my thinking so far. |
For mapping large dynamic datasets this would be very useful, at least adding data, for my use case. Any further thoughts on this? |
mapbox-gl-draw is another usecase that would benefit a lot from being able to update data. |
Wow, this is an old issue :) Seems like everyone's done fine without it for six years, so probably not that vital! |
Would it be possible to add an API that adds data into the pyramid of tiles (and potentially removes it, but that might be tougher)? This would make live-data use cases very interesting.
The text was updated successfully, but these errors were encountered: