All examples By author By category About

phil-pedruco

D3.js and Leaflet with a simple json overlay

A bump of Pere's gist to get the geojson polygons to plot correctly, in answer to this Stack Overflow question. In summary the bounds of the polygon needed to be recalcauted when leaflet map was called i.e. bounds was copied into the reset function in the code below.