Search code examples
d3.jsleafletangular-leaflet-directive

D3 with latest leaflet version


All the sample available for using leaflet with d3 is using leaflet version 0.7.x which was released in 2015.

Why are all modules and examples using so old leaflet version? For ex:

When I try to update for ex this http://bl.ocks.org/d3noob/9267535 to latest leaflet version it breaks.

Is there any reason why all the example still use so old leaflet version?


Solution

  • I was able to solve all the breaking changes.

    1) Leaflet no longer uses "viewreset" to watch for zoom changes rather it uses "zoom" to monitor zoomin/zoomout.

    2) No more uses map._initPathRoot(); to add svg layer.