Map Polygon With Free Draw
This is a map polygon with free draw option. I used mapbox.js for map and leaflet.freedraw.js for free draw… If you want, you can edit it to using leaflet.js. You can view on github.
Live Preview on WebPage
Free Draw Option
When encoded array come with get request, another function take it and decode it. Then place a polygon area that used this cordinates array.