kosmtik / kosmtik

Make maps with OpenStreetMap and Mapnik

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there a way to update for a specific layer without having to reload the map tiles each time?

kevjp opened this issue · comments

commented

I would like to display the location of specific agents in real time (or pseudo-real time as it relates to a simulation) on a map. I am happy to begin with to explore movement of the agents within a specific set of bounds so the zoom and area of the map can stay constant. Is there a way of being able to update the page with the new locations of the agents without having to render the tiles for the whole map each time. I have been able to add a layer relating to the agents which appends to the project.mml file (although there may be a more appropriate way of doing this - I am pretty new to kosmtik). This allows me to plot the agents on the map. I have a python library which calculates the new location for each agent which updates the project.mml file and this is eventually updated on the rendered map. However the rendering is not fast enough to show the agents moving across the map. I think if I could update the map with just the layer relating to the agents location it should speed things up significantly.