views:

33

answers:

2

i have many makers (maybe 500) to insert to maps, so i want to Optimization them

google.maps.event.addListener(marker, 'visible_changed', function() {
                alert('ww')
            });

this code can't alert 'ww', when i zoom in the map(so some marker will not be seen)

why can't trigger the 'visible_changed' event when zoomin

and how to handle the event when the marker is loaded into memory,

and how to handle the event when the marker is inserted into map,

thanks

A: 

If you would like to display this many markers you should be using marker clusterer or marker manager - they will do all the hard work for you - all you need to do is pass an array of marker objects to them. More info here http://code.google.com/p/google-maps-utility-library-v3/wiki/Libraries and a demo here

Michal
A: 

Hello, I have similar problem. I want to catch event, when marker is displayed on a page. I´m working on my diploma paper and I need to test different browsers and show up script duration. Any idea?

CZesar