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

Updatable tiles #26

Closed
tmcw opened this issue Dec 17, 2014 · 7 comments
Closed

Updatable tiles #26

tmcw opened this issue Dec 17, 2014 · 7 comments
Assignees

Comments

@tmcw
Copy link
Contributor

tmcw commented Dec 17, 2014

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.

@mourner
Copy link
Member

mourner commented Mar 6, 2015

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.

@mourner
Copy link
Member

mourner commented Mar 6, 2015

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?

@incanus
Copy link
Contributor

incanus commented Mar 14, 2015

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.

@incanus
Copy link
Contributor

incanus commented Mar 14, 2015

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.

@gmaclennan
Copy link

For mapping large dynamic datasets this would be very useful, at least adding data, for my use case. Any further thoughts on this?

@tmcw
Copy link
Contributor Author

tmcw commented May 6, 2016

mapbox-gl-draw is another usecase that would benefit a lot from being able to update data.

@tmcw
Copy link
Contributor Author

tmcw commented Dec 26, 2020

Wow, this is an old issue :) Seems like everyone's done fine without it for six years, so probably not that vital!

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

No branches or pull requests

4 participants