New Manus Drawn Polygons For Leaflet


You powerfulness bring seen examples of rough.js floating merely about on social media this week. Rough.js is a novel canvass based library for creating graphics which bring a sketchy, hand-drawn appearance. The library's github page includes a dandy d3.js exhibit map inwards which each of the states has been filled inwards alongside a unlike hand-drawn style.

Rough.js doesn't solely operate alongside static maps. Because the library is canvass based you lot tin give the axe too overlay hand-drawn, sketch similar polygons on transcend of an interactive map. At to the lowest degree you lot tin give the axe if you lot role the novel Leaflet.RoughCanvas plug-in for Leaflet maps. The plug-in allows you lot to add together polylines together with polygons to a Leaflet.js map which bring a hand-drawn style.

Here's a demo map which I created using Leaflet.RoughCanvas alongside a Mapbox styled base-map.
Buat lebih berguna, kongsi:
close