3 ms·
One of my favorite tricks with leaflet is to tie into the ontileload event. You can index your data by tile id or quadkey and seamlessly load your data in for t
by buckhx 10y ago
One of my favorite tricks with leaflet is to tie into the ontileload event. You can index your data by tile id or quadkey and seamlessly load your data in for the specific data that is in view.
- socmag 10y agoOh that is a really good tip! Good one. Do you have a demo?
- buckhx 10y agoHere's a screencast of a side project that used that technique. The top artists are bound to quadkeys and are loaded via the ontileload event via a websocket. Going to get back into some map work in the next few months and might write out a blog post about this technique. https://drive.google.com/file/d/0BwPUV--rEjyiVDc4UXBzUnhhMDA/view https://drive.google.com/file/d/0BwPUV--rEjyiVDc4UXBzUnhhMDA...
- socmag 10y agoHah, wow that is really great. Super fun application and the UX is awesome. Nice job