8 ms·
No need to write it yourself - the article mentions using Leaflet https://leafletjs.com/ https://leafletjs.com/ for just such a purpose.
by exhilaration 8y ago
No need to write it yourself - the article mentions using Leaflet https://leafletjs.com/ https://leafletjs.com/ for just such a purpose.
- voltagex_ 8y agoWhen I last looked at this, using Google Maps tiles with Leaflet was against the ToS.
- timmy-turner 8y agoRight, just using the plain gmaps tiles in a Leaflet tile layer is against the google TOS. But there is a Leaflet plugin that puts the whole google map component in a TOS-compliant way as a layer into leaflet and keeps both in sync with DOM observers. Sounds pretty weird but works perfectly in production. https://gitlab.com/IvanSanchez/Leaflet.GridLayer.GoogleMutant https://gitlab.com/IvanSanchez/Leaflet.GridLayer.GoogleMutan...
- voltagex_ 8y agoProbably spirit vs letter of the law there. Hopefully performance has improved since the last time I looked (3 years ish)
- namibj 8y agoIt's a contract, not yet a law (thanks btw). Contracts are usually taken pretty literally if the judge who decides sees significant time being put into the contract to make it include all forseable cases.