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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T15:16:11+00:00 2026-06-13T15:16:11+00:00

does anyone know if it is possible to draw a square on a (google)

  • 0

does anyone know if it is possible to draw a square on a (google) map and have the Topleft and Bottomright corners of this square pre-populate 4 form-fields outside of the map with their respective longtitude & lattitude

Alternative :

If the above is not feasible, is it possible to have a user click on a map and pull away from this coordinate creating a circle with increasing radius ?

In both options the square or circle needs to be visualized on screen (map overlay ?).

Looking for a simple and clean solutions for a user to select a region on a map so a database can be probed based on lat-lon data.

  • 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-13T15:16:12+00:00Added an answer on June 13, 2026 at 3:16 pm

    Google Maps JavaScript API V3 allow map objects to store state and update their presentation automatically by implementing MVC objects.

    Two of these may interest you in your project.

    These are Rectangle overlay and Circle overlay

    These 2 SAMPLES Rectangle and Circle use these overlays which you can be used as a basis for your project.

    The coordinates below can then be used to search database.(Using AJAX)

    var latLngBounds = new google.maps.LatLngBounds(
          marker1.getPosition(),
          marker2.getPosition()
        );
    

    The SQL query should look like this

    SELECT * FROM table WHERE lat BETWEEN lat1 AND lat2  AND lng BETWEEN  lon1 AND lon2
    

    You should also think about using PDO with prepared statements.

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

Sidebar

Related Questions

Does anyone know if this is possible? I can't see to find much info
Does anyone know if its possible to have multiple tool tips displayed when you
I have quite an uncommon question: Does anyone know whether it is possible to
Does anyone know how (if possible) to create an account dynamically? I have a
Does anyone know if it is possible to have fine-grained control over line properties
Does anyone know if its possible to flip an image and have content on
This maybe a stupid idea, but does anyone know is it possible to access
Does anyone know if its possible to use phing to copy an entire folder
Does anyone know if its possible to turn off dreamweavers custom icons that it
Does anyone know if its possible to set the amount of memory available in

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.