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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:06:49+00:00 2026-05-31T22:06:49+00:00

I am using the Google Maps Drawing Manager of API V3. google.maps.drawing.DrawingManager I am

  • 0

I am using the Google Maps Drawing Manager of API V3. google.maps.drawing.DrawingManager

I am letting the user draw a number of circle overlays on the map. Then when they click on a ‘Save’ button, I need to be able to get the properties of all the circles and eventually do my server side magic with it.

How can I get the list of circles, as objects or array … etc.., using Javascript?

Below is the code where I am creating the DrawingManager and adding the Circle tool to the control. I was following more or less, this https://developers.google.com/maps/documentation/javascript/reference#DrawingManager

if (drawingManager == null) {
    drawingManager = new google.maps.drawing.DrawingManager({
        drawingMode: google.maps.drawing.OverlayType.CIRCLE,
        drawingControl: false,
        drawingControlOptions: {
            position: google.maps.ControlPosition.TOP_CENTER,
            drawingModes: [google.maps.drawing.OverlayType.CIRCLE]
        },
        circleOptions: {
            fillColor: '#FF0000',
            fillOpacity: 0.35,
            strokeWeight: 5,
            clickable: false,
            draggable: true,
            zIndex: 1,
            editable: true
        }
    });
}
  • 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-31T22:06:51+00:00Added an answer on May 31, 2026 at 10:06 pm

    There is an event overlayComplete which will be dispatched after you finished drawing an overlay(in your case it is circle). You can handle it and add newly created object to data structure, e.g. to array, which you can use to store the objects and send them to server. Try something like this:

      //After creating 'drawingManager' object in if block 
      google.maps.event.addListener(drawingManager, 'overlaycomplete', function(event) {
          if (event.type == google.maps.drawing.OverlayType.CIRCLE) {
             //Add 'event.overlay', which is Circle, to array
          }
      });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Google Maps API v2, I was using map.clearOverlays() to remove the marker and
I am using Google Maps API to display a map on a certain page.
I'm using Google Maps API V3 and my page loads a map with 5
I am using Google Maps V3 API to create a google map where the
I run a search using google.maps.places.PlacesService(map) and then I place markers on the map
I'm using Google maps api v3. In the middle of the map there is
I am using google maps api to place markers on a map. The gps
I'm using google maps api to have a map show up on my website
I created a map using Google Maps API that highlights all Minnesota counties. Basically,
Following Mootools class helps developer to draw a circle overlay on Google Map using

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.