GithubHelp home page GithubHelp logo

Updatable tiles about geojson-vt HOT 7 CLOSED

mapbox avatar mapbox commented on July 16, 2024 5
Updatable tiles

from geojson-vt.

Comments (7)

mourner avatar mourner commented on July 16, 2024

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.

from geojson-vt.

mourner avatar mourner commented on July 16, 2024

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?

from geojson-vt.

incanus avatar incanus commented on July 16, 2024

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.

from geojson-vt.

incanus avatar incanus commented on July 16, 2024

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.

from geojson-vt.

gmaclennan avatar gmaclennan commented on July 16, 2024

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

from geojson-vt.

tmcw avatar tmcw commented on July 16, 2024

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

from geojson-vt.

tmcw avatar tmcw commented on July 16, 2024

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

from geojson-vt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.