assets/js/gmap.js
/**
* Generates number of random geolocation points given a center and a radius.
* @param  {Object} center A JS object with lat and lng attributes.
* @param  {number} radius Radius in meters.
* @param {number} count Number of points to generate.
* @return {array} Array of Objects with lat and lng attributes.
*/
Generates number of random geolocation points given a center and a radius.
Generates number of random geolocation points given a center and a radius .
function generateRandomPoints(center, radius, count) {
  var points = [];
  for (var i=0; i<count; i++) {
    points.push(generateRandomPoint(center, radius));
  }
  return points;
}
function generateRandomPoints ( center , radius , count ) { var points = [ ] ; for ( var i = 0 ; i < count ; i ++ ) { points . push ( generateRandomPoint ( center , radius ) ) ; } return points ; }
Generates number of random geolocation points given a center and a radius.
Generates number of random geolocation points given a center and a radius .