title: Drawing irregular concentric circles using Google Maps
body: <p>I have a bit of a problem. I am trying to do the following using Javascript &amp; the Google Maps API v2: </p>
  
  <p><a href="http://www.flickr.com/photos/joshipoo/3888966064/" rel="nofollow noreferrer" title="myhurricane.net - Wind Radii Profile by Josh Delsman, on Flickr"><img src="https://farm3.static.flickr.com/2537/3888966064_0b55f28d13_o.png" width="504" height="360" alt="myhurricane.net - Wind Radii Profile" /></a></p>
  
  <p>I can draw individual circles just fine using formulas found all over the Internet. The problem I am facing is that the circles must:</p>
  
  <p>A. Be concentric, and
  B. Must have different radius for each "quadrant", i.e., NE, NW, SE &amp; SW</p>
  
  <p>I've searched almost everywhere I can think of on the Internet, and have come up with no way on how to do this. Clearly someone has done this before, and thus why I'm asking in a forum of programmers. :)</p>
  
  <p>Thanks!</p>
  
  <p><strong>UPDATE:</strong> I have drawn out, using the following code, what I think the coordinates for each of the points would be. for the drawing below:</p>
  
  <p><a href="http://www.flickr.com/photos/joshipoo/3888276981/" rel="nofollow noreferrer" title="snapshot-1252125257.781397 by Josh Delsman, on Flickr"><img src="https://farm4.static.flickr.com/3507/3888276981_d821ab1e4d.jpg" width="500" height="375" alt="snapshot-1252125257.781397" /></a></p>
  
  <p>This was obtained using the following JS:</p>
  
  <p><a href="http://gist.github.com/181290" rel="nofollow noreferrer"><a href="http://gist.github.com/181290" rel="nofollow noreferrer">http://gist.github.com/181290</a></a></p>
  
  <p>NOTE: This javascript is from (slightly modified) the following site, which may hold more answers in terms of what the algorithm may end up being: <a href="http://www.movable-type.co.uk/scripts/latlong.html" rel="nofollow noreferrer">http://www.movable-type.co.uk/scripts/latlong.html</a></p>
  
  <p><strong>UPDATE 2:</strong> I was able to get this in Google Maps:</p>
  
  <p><a href="http://www.flickr.com/photos/joshipoo/3888366575/" rel="nofollow noreferrer" title="Concentric Circles Progress by Josh Delsman, on Flickr"><img src="https://farm3.static.flickr.com/2450/3888366575_a75fe7fa41_o.png" width="530" height="360" alt="Concentric Circles Progress" /></a></p>
  
  <p>Created using the following code:</p>
  
  <pre><code>var NEQ = [0, 90];
  var SEQ = [90, 180];
  var SWQ = [180, 270];
  var NWQ = [270, 0];
  
  // var centrePoint = new LatLon(25.0, -83.1);
  // pointsForWindQuadrant(NEQ, centrePoint, 50);
  function pointsForWindQuadrant(quadrantDegrees, centrePoint, radius){
    var points = [];
  
    // Points must be pushed into the array in order
    points.push(new google.maps.LatLng(centrePoint.lat, centrePoint.lon));
  
    for(i = quadrantDegrees[0]; i &lt;= quadrantDegrees[1]; i++){
      var point = centrePoint.destPoint(i, radius * 1.85);
      points.push(new google.maps.LatLng(point.lat, point.lon)); // Radius should be in nautical miles from NHC
    }
  
    points.push(new google.maps.LatLng(centrePoint.lat, centrePoint.lon));
  
    return points;
  }
  </code></pre>
  
  <p><strong>UPDATE 3:</strong> I should probably also point out that this is for a <em>geographic coordinate system</em> (as this whole thing is for tropical cyclone wind radii), not the Cartesian coordinate system. Thanks!</p>