Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
GMarkerManager: can't remove markers ?!
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
drm  
View profile  
 More options Mar 11 2007, 4:22 pm
From: "drm" <david.r.mar...@gmail.com>
Date: Sun, 11 Mar 2007 13:22:33 -0700
Local: Sun, Mar 11 2007 4:22 pm
Subject: GMarkerManager: can't remove markers ?!

It's clear that lots of people are running into this problem...

I have different sets of markers that need to change depending both on
the zoom level (hierarchical clustering) and on a "category" (that I
define).  For a given category, I can add all the markers to a marker
manager, and that works great.  When I change zoom, things work
fine.

Changing categories is the problem:  When the category changes, I
remove all overlays from the map (I know that doesn't remove the
markers hidden by the marker manager), and create a new marker manager
for the category.  This also works fine, BUT if I then change the zoom
level on the map, the old marker manager kicks in and shows markers
from the old category at the new zoom level.

The GMarkerManager is useful, but I'm absolutely astounded that you
can add markers to it but not remove markers.  Or even just blow away
a marker manager along with its markers.  A data structure that you
can create and add things to but not remove anything or ever delete?!

So, two questions:

(1) Can we have any assurance from the API team besides "we've read
your post" that this will be fixed in the near future?

(2) Is there any workaround that does not involve memory leaks and old
marker managers wasting CPU cycles?

Thanks very much,
dm


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
J.  
View profile  
 More options Mar 12 2007, 12:54 pm
From: "J." <jwornowit...@googlemail.com>
Date: Mon, 12 Mar 2007 09:54:04 -0700
Local: Mon, Mar 12 2007 12:54 pm
Subject: Re: GMarkerManager: can't remove markers ?!
Hi drm,

Regarding (2), I ended with a hack found in the group which moves
markers out of view (beyond the North Pole, actually) and back again
as needed. This doesn't however prevent the GMarkerManager from
checking the viewport for "hidden" markers, of course. I use the
following functions:

function hideMarkers() {
  for (var id in allMarkers)
    try {
      allMarkers[id].savedPoint = allMarkers[id].getPoint();
      allMarkers[id].setPoint(new GLatLng(91, 0));
    } catch (e) {
    }
  markerMgr.refresh();

}

function showMarkers() {
  for (var id in allMarkers)
    try {
      allMarkers[id].setPoint(allMarkers[id].savedPoint);
    } catch (e) {
    }
  markerMgr.refresh();

}

In your case, I'd add all markers to a single GMarkerManager and make
the functions hide/show markers depending on a category parameter.

-- J.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pamela  
View profile  
 More options Mar 12 2007, 8:04 pm
From: "pamela" <pammyla....@gmail.com>
Date: Tue, 13 Mar 2007 00:04:10 -0000
Local: Mon, Mar 12 2007 8:04 pm
Subject: Re: GMarkerManager: can't remove markers ?!
Hi drm,
Re 1), I've personally made the requested changes to the Marker
Manager code.
The changes are not yet released. Please stay tuned to the blog for
announcements of the fixes.
Sorry for the delay. I think you'll be pleased with the changes in the
marker manager.
-Pamela

On Mar 12, 9:54 am, "J." <jwornowit...@googlemail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dkraai  
View profile  
 More options Mar 20 2007, 7:46 pm
From: "dkraai" <kr...@advpubtech.com>
Date: Tue, 20 Mar 2007 16:46:43 -0700
Local: Tues, Mar 20 2007 7:46 pm
Subject: Re: GMarkerManager: can't remove markers ?!
Do you have any idea when the changes will be release?

Thanks!

On Mar 12, 5:04 pm, "pamela" <pammyla....@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kedoin  
View profile  
 More options Mar 27 2007, 12:11 pm
From: "kedoin" <ked...@gmail.com>
Date: Tue, 27 Mar 2007 16:11:04 -0000
Local: Tues, Mar 27 2007 12:11 pm
Subject: Re: GMarkerManager: can't remove markers ?!
I was searching the group looking for a way to remove markers when I
found this note.

After finding this, I found this blog entry which says the new API for
MarkerManager has been released as an open source project:

http://googlemapsapi.blogspot.com/2007/03/new-open-source-utility-lib...
    -Rob

On Mar 20, 7:46 pm, "dkraai" <k...@advpubtech.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pamela (Google Employee)  
View profile  
 More options Mar 27 2007, 12:12 pm
From: "pamela (Google Employee)" <api.pamela...@google.com>
Date: Tue, 27 Mar 2007 09:12:58 -0700
Local: Tues, Mar 27 2007 12:12 pm
Subject: Re: GMarkerManager: can't remove markers ?!
Yes, it has been released as an open source project.
What that blog post doesn't mention is that I added the delete and
clear markers functionality requested.
Please try it out and let me know if you encounter any issues.
(If you'd like to work on it yourself, consider joining the project :)
Thanks!

On Mar 27, 9:11 am, "kedoin" <ked...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Evan  
View profile  
 More options Mar 29 2007, 1:38 pm
From: "Evan" <in2d...@gmail.com>
Date: Thu, 29 Mar 2007 10:38:52 -0700
Local: Thurs, Mar 29 2007 1:38 pm
Subject: Re: GMarkerManager: can't remove markers ?!
Pamela,

Thanks, this is terrific.  Out of curiosity, is the GMarkerManager
delete functionality going to be part of the main api or is it just
provided as an example on the new open source site?

Thanks,

Evan

On Mar 27, 12:12 pm, "pamela (Google Employee)"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »