On Apr 13, 12:58 pm, Huggy <[email protected]> wrote:
> Hi there :D
>
> I got a map with a looooot of markers. Because of the users
> performance I use                         var bounds = map.getBounds(); for
> checking whether a marker is at the line of view for the user or not.
> This is working pretty good and I created a function called create() :


>
> It's working pretty good. Whether the user zooms away or drags the
> map , the markers at this position will not be set because they were
> not seeable when the map was loaded, so I wrote         window.setInterval
> ("create()", 3000);
>
> This is working fine, too
>
> The problem is: When a User doesn't move the map, GMaps will not
> override the existing markers but place another one over them. Imagine
> you're at a place with 50 markers, after 3 Seconds there will be 100,
> after three more seconds 150 and so on.
> How to check whether a marker is allready placed and if it is, skip
> placing a new one?

Write code to do that?
How you do that depends on how your map and data is structured, which
you haven't deigned to share with us.

>
> Or is there a better way as  using setInterval ?

Show us your map and maybe we can tell.

  -- Larry



--~--~---------~--~----~------------~-------~--~----~
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