MarkerManager missing markers at high volume

55 views
Skip to first unread message

ebakunin

unread,
Jul 7, 2010, 3:20:38 PM7/7/10
to Google Maps JavaScript API v3
Hello,

I'm using MarkerManager to handle 2100+ locations. As usual, I display
them according to zoom level (fewest a high zoom, all markers at max
zoom). While a bit slow, everything seems to work fine. However, at
max zoom, if you scroll through several panels the markers no longer
display. It's as if MarkerManager only wants to render markers for
nearby panels but nothing more. How should I handle this problem?

I'm using the version of MarkerManager built for API v3.

geoco...@gmail.com

unread,
Jul 7, 2010, 5:20:03 PM7/7/10
to Google Maps JavaScript API v3
On Jul 7, 12:20 pm, ebakunin <ebaku...@gmail.com> wrote:
> Hello,
>
> I'm using MarkerManager to handle 2100+ locations. As usual, I display
> them according to zoom level (fewest a high zoom, all markers at max
> zoom). While a bit slow, everything seems to work fine. However, at
> max zoom, if you scroll through several panels the markers no longer
> display. It's as if MarkerManager only wants to render markers for
> nearby panels but nothing more. How should I handle this problem?

I would suggest following the posting guidelines and providing a link
to your map that exhibits the problem and instructions on how to
reproduce it.

-- Larry

ebakunin

unread,
Jul 7, 2010, 6:22:43 PM7/7/10
to Google Maps JavaScript API v3
Sorry about that.

Here's the draft of the map: http://ericchristenson.com/battletech/map_test.html

MarkerManager is called in initialize() but the markers are created in
createMarker().

To reproduce the problem zoom in to the max level and then keep
panning to the right using the nav button. Eventually the markers just
end, as if there's a distance they will not pass. What's interesting
is that if you click and drag the map to the same location the markers
will eventually display. The problem seems to be in the panning.
Perhaps the tilesloaded or idle events are not being recognized -- I'm
unsure how MarkerManager decides when to render markers.

Thanks for the help.


On Jul 7, 2:20 pm, "geocode...@gmail.com" <geocode...@gmail.com>
wrote:

William

unread,
Jul 8, 2010, 1:54:04 AM7/8/10
to Google Maps JavaScript API v3
On Jul 8, 8:22 am, ebakunin <ebaku...@gmail.com> wrote:
> The problem seems to be in the panning.
> Perhaps the tilesloaded or idle events are not being recognized -- I'm
> unsure how MarkerManager decides when to render markers.

I had a look at the source code and it's not listening for
"bounds_changed", only "dragend" and "zoom_changed", so it doesn't
notice panning when using the controls.

The V2 code listened for "moveend", a generic event when a change of
map view ended. V3 has "dragend" and "bounds_changed".

Anyway you could report the issue here (but it seems all issues there
have the status "New", and I don't know who's responsible for
maintaining the issues list)
http://code.google.com/p/google-maps-utility-library-v3/issues/list

...



ebakunin

unread,
Jul 8, 2010, 2:22:09 AM7/8/10
to Google Maps JavaScript API v3
I submitted an issue to the project:
http://code.google.com/p/google-maps-utility-library-v3/issues/detail?id=21

Thanks a lot for the help William.
Reply all
Reply to author
Forward
0 new messages