I am making a map with some countries and I would like to draw points which are randomly position inside those countries. I was trying to use bounding box, but the points were very often drawn outside the country.
I have found the point-in-polygon function http://bl.ocks.org/bycoffe/5575904
It checks if the point intersects with some line coordinates and I don't know how to get those from my map.
Regards, Almbu