Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 350397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:32:48+00:00 2026-05-12T11:32:48+00:00

I have a bit of a problem. I am trying to do the following

  • 0

I have a bit of a problem. I am trying to do the following using Javascript & the Google Maps API v2:

myhurricane.net - Wind Radii Profile

I can draw individual circles just fine using formulas found all over the Internet. The problem I am facing is that the circles must:

A. Be concentric, and
B. Must have different radius for each “quadrant”, i.e., NE, NW, SE & SW

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. 🙂

Thanks!

UPDATE: I have drawn out, using the following code, what I think the coordinates for each of the points would be. for the drawing below:

snapshot-1252125257.781397

This was obtained using the following JS:

http://gist.github.com/181290

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: http://www.movable-type.co.uk/scripts/latlong.html

UPDATE 2: I was able to get this in Google Maps:

Concentric Circles Progress

Created using the following 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 <= 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;
}

UPDATE 3: I should probably also point out that this is for a geographic coordinate system (as this whole thing is for tropical cyclone wind radii), not the Cartesian coordinate system. Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T11:32:48+00:00Added an answer on May 12, 2026 at 11:32 am

    I figured it out. Here is the final code. Maybe it can be refactored a bit?

    // Returns points for a wind field for a cyclone. Requires
    // a LatLon centre point, and an array of wind radii, starting
    // from the northeast quadrant (NEQ), i.e., [200, 200, 150, 175]
    //
    // Returns points to be used in a GPolyline object.
    function pointsForWindQuadrant(centrePoint, radii){
      if(radii.length != 4){ return false; }
    
      var points = [];
      var angles = [0, 90, 180, 270];
    
      // For each angle 0, 90, 180, 270...
      for(a = 0; a < angles.length; a++){
        // For each individual angle within the range, create a point...
        for(i = angles[a]; i <= angles[a] + 90; i++){
          var point = centrePoint.destPoint(i, radii[a] * 1.85); // Radius should be in nautical miles from NHC
          points.push(new google.maps.LatLng(point.lat, point.lon));
        }
      }
    
      // Add the first point again, to be able to close the GPolyline
      var point = centrePoint.destPoint(0, radii[0] * 1.85);
      points.push(new google.maps.LatLng(point.lat, point.lon));
    
      return points;
    }
    

    This results in the following:

    New myhurricane.net - Wind Radii (Map View)
    New myhurricane.net - Wind Radii (Satellite View)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following bit of code. I'm trying to dynamically add drop-down options
I have a bit of a strange problem. I am trying to send in-app
I am trying to work out why an NPAPI plugin I have written, which
I've been going bananas trying to get some data from Javascript on one page
I am just getting into OOP and framework design. I have started by using
I have the following tables in MySQL: users profile rates In the users table,
I'm trying to learn how to run C# and C++ code together using Mono
I have the following situation: @Entity class A{ @Id @SequenceGenerator(name = SEQ_AID, sequenceName =
Consider the following graph: I'm trying to find a way to enumerate all possible
I am trying to bind a few WPF controls to a trie. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.