On Oct 14, 3:44 pm, Umut Tuncdemir <[email protected]> wrote:
> I have found out how to remove marker from the map but now when i try
> to recreate the marker on map i am getting strange js error such as
> below

What you could do with the loop you posted first is only add visible
markers to the bounds object.

  for (var i = 0; i < gmarkers.length; i++) {
    if (!gmarkers[i].isHidden()) {
      var point = gmarkers[i].getPoint();
      bounds.extend(point);
    }
  }

Andrew

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to