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

  • Home
  • SEARCH
  • 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 8270253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T06:31:43+00:00 2026-06-08T06:31:43+00:00

I need to draw a circle in google Maps V3 but I have 2

  • 0

I need to draw a circle in google Maps V3 but I have 2 coordinates, the center and the outter position. Problem is the API expects center and “radius”.
For example:

var myCirclePath = [];
myCirclePath.push(new google.maps.LatLng(18.111111,66.111111));
myCirclePath.push(new google.maps.LatLng(18.223344,66.222222));

var myCircle = new google.maps.Circle({
    center: myCirclePath[0],
    radius: // what do I put here????
    map: map
});

I searched around the web and find a lot of stuff about radians, degrees, sin, atan, and what not… however, I’m not good at math and I’m totally lost.

So, the questions are:

a) What should I put in the “radius:” option?

b) How can I center the zoom around the circle? “Bounds.Extend” will not do it

  • 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-06-08T06:31:44+00:00Added an answer on June 8, 2026 at 6:31 am

    So, the questions are:

    a) What should I put in the "radius:" option?

    Use the geometry library computeDistanceBetween() to find the radius (passing in your two points)

    b) How can I center the zoom around the circle? "Bounds.Extend" will not do it

    Once you have created the circle, you can call the getBounds() method on it to get its bounds

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

Sidebar

Related Questions

I have a Google Maps Circle drawn on v3 api. When the user has
Is it possible do draw hollow circle in Google Maps v3? More information: I
I need to have all point coordinates for a given circle one after another,
I need draw rectangle with two circle holes inside. The problem is in circles
I need to draw a circle as per my finger move so i have
I'v encountered a problem with Google Maps on Android. In my app I have
I have recently started working with Android, And I need to draw a Circle
I need to draw a part of a perfect circle using graphics.curveTo (I have
I need to draw a circle onto a bitmap in a specific colour given
I need to draw a rectange,circle and line and then animate them(press left ->

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.