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 8935723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:03:34+00:00 2026-06-15T10:03:34+00:00

I have set up a google map on my website(localhost) by using javascript. Right

  • 0

I have set up a google map on my website(localhost) by using javascript. Right now the user can create circles or rectangles by left or right clicking. The user can also make the rectangle bigger or smaller and the same applies in circles as well.
I would like the application not to let the user create rectangles which have an area more than X.
I managed to achieve this with circles since the area of a circle is defined by its radius and Math.PI.
I know that for the rectangle the area is the length of the bottom multiplied by the length of the height.
However, how can I find this information from latitudes and longitudes of the south west and north east corners?

Thanks in advance

  • 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-15T10:03:35+00:00Added an answer on June 15, 2026 at 10:03 am

    Let P(X1, Y1) and Q(X2, Y2) be the north east and south west coordinates (I suppose that you have converted them to pixels first). The rectangle’s area would be then A = (X2-X1)*(Y2-Y1).

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

Sidebar

Related Questions

Right now I have google map code that will set a single marker on
I have an ASP.NET website set up, and I'm using Google Analytics for page
Hi have an array of cities and want to create a google map using
Hi I have to set two address at a time in google map. User
I have a google map set with the Javascript API V3. It's displayed in
I have a google map set up to find the user's current location, and
i have a multiple marker Google map, it works fine but i want set
I have just added a google translate in website.And set the default language English.
I'm using Google Test Framework to set some unit tests. I have got three
I'm using google.maps javascript API v3. I need to translate a set of civic

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.