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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:01:22+00:00 2026-06-17T17:01:22+00:00

How i can remember in older versions of Gmaps API was it possible, to

  • 0

How i can remember in older versions of Gmaps API was it possible, to make a custom Overlay for adding a Markers on it and than add or remove from main map. Also it was possible to make different groups of results and show/hide it in only one command. In the new reference i can not find it, did they have rename 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-17T17:01:23+00:00Added an answer on June 17, 2026 at 5:01 pm

    You’re talking about a GLayer – https://developers.google.com/maps/documentation/javascript/v2/reference#GLayer

    It has, in fact, been removed from the v3 API.

    In API v3, it’s been left up to the developer to keep track of their overlays and add/remove them from the map as they wish.

    The best way to do this is keep your overlays in an array (or an object) and loop through them.

    For example, if you had two distinct sets of overlays (infoWindows and markers), you could do something like this:

    var overlays = {
        markers : [],
        infoWindows : []
    };
    
        //create a marker and put it in markers
        var marker = new google.maps.Marker();
        overlays.markers.push(marker);
    
        //create an infoWindow and put it in infoWindows
        var infoWindow = new google.maps.InfoWindow();
        overlays.infoWindows.push(infoWindow);
    
        //remove all infoWindows from the map
        for(var i=0;i<overlays.infoWindows.length;i++) {
          overlays.infoWindows[i].setMap(null);
        }
    
        //remove all markers from the map
        for(var i=0;i<overlays.markers.length;i++) {
          overlays.markers[i].setMap(null);
        }
    

    It’s a simplistic example, but hopefully you get the idea: that adding, managing, and removing “groups” of overlays in v3 is left up to the developer.

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

Sidebar

Related Questions

I used to have a great Firefox add-on for this and I can't remember
In an older version of Eclipse, the number of which I can't remember, there
I can remember that some time ago when I created a UserControl in Visual
I didn't remember the name of this program. But i can remember how it
I can't remember exactly where I've seen this strange `1 (single-tick and the number
I've seen somewhere but can not remember. How to get a SQL string from
There's a movie which name I can't remember. It's about a carnival or amusement
So i've been looking into neo4j lately and can't remember the last time i
I know this isn't so complicated but I can't remember how to do. I
I was listening to a podcast recently (may have been SO - can't remember)

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.