davidrepko / google-maps-utility-library-v3

Automatically exported from code.google.com/p/google-maps-utility-library-v3
Apache License 2.0
0 stars 0 forks source link

MarkerManager not adding markers back to map after map move #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If you zoom in on a point so that the other points are removed from the DOM/map 
then move the map in any other method other than dragging (eg. InfoBubble), the 
map won't add the marker back to the map as it depends on 'dragend' and since 
the map was never dragged, the event doesn't fire.

Instead of using dragend and zoom_changed, I believe bounds_changed may be a 
better option as it covers off both of those and fixes the issue.

What steps will reproduce the problem?
1. Load markers to map via MarkerManager
2. Zoom in on a marker so that other markers are removed
3. Trigger an infobubble elsewhere on the map
4. Map will reposition, but marker will not be shown

Expected result:
Marker to be shown.

Actual result:
Marker wasn't shown.

Version: MarkerManager v3 1.0

Browser / Operating System:
Win 7, Safari/Chrome/IE/Firefox

Additional comments:
n/a

Original issue reported on code.google.com by mark.markwyman.net@gmail.com on 30 Sep 2010 at 10:33

GoogleCodeExporter commented 9 years ago
Probably not as good as I first thought, bounds_changed fires multiple time 
during drag. Will need to add something else to handle the drag.

Original comment by mark.markwyman.net@gmail.com on 5 Oct 2010 at 3:48

GoogleCodeExporter commented 9 years ago
I have had a look and perhaps a good event listener is the 'idle' listener, 
this will at least fire on the pan. Im not sure tho, maybe now the moveend 
method is called twice, but i didnt see any considerable slowdown.

Original comment by bbr...@gmail.com on 1 Nov 2010 at 9:45

GoogleCodeExporter commented 9 years ago

Original comment by bbr...@gmail.com on 1 Nov 2010 at 9:46

GoogleCodeExporter commented 9 years ago

Original comment by bbr...@gmail.com on 1 Nov 2010 at 9:56