mapbox/geojson-vt

Add ability to add features to existing index

aparzi opened this issue · 6 comments

is it possible to recover the previously inserted figures or scroll the tiles?

I don't understand — can you be more specific? What exactly are you trying to achieve and how do you expect this to work?

I load a geojson and so far it works fine, after which I would like to add, later, a new figure to the previous geojson and do the updated rendering with the new figure. like an append of figures to the geojson above

Ah, right. So same as #26.

@mourner Sorry i didn't understand how i can update a geojson-vt instance. Could you point me with a snippet or something? my goal is to add a feature to a geojson rendered on openalyers (I integrated geojson-vt on openlayers)

I meant this is not currently possible with geojson-vt, it's a static index — adding a feature requires creating a new index. It's something I'd like to add some time in the future but no immediate timeline for this.

@mourner ah okay, perfect.