3 ms·
So the data seems to come from the overpass API as XML, gets a bit of transformation in rust, passed back to javascript for drawing... To me, that seems like t
by londons_explore 3y ago
So the data seems to come from the overpass API as XML, gets a bit of transformation in rust, passed back to javascript for drawing...
To me, that seems like the wrong design for performance... Drawing you probably want to use webgl shaders for so you can do zooming and panning at 60 fps...
And downloading the data as XML seems like a bad idea if you're drawing city-sized areas because the XML will be huge and contain plenty more detail than you need. Instead you need a server-side component to pack simplified and quantized polygon data for the necessary scale into a binary datastructure for sending to the client.
And thats exactly how bing/google maps/apple maps work...