If I take the clicklistener outside the click map event, I get a error
in main.js ("a is null").

Here the code:
        google.maps.event.addListener(map, "click", function(event) {
        marker = new google.maps.Marker({
          position: event.latLng,
          map: map,
          draggable: true
        });
        map.setCenter(event.latLng);
        map.setZoom(13) ;
        google.maps.event.addListener(marker, "click", function() {
          infowindow.open(map, marker);
        });
    });

 
google.maps.event.addListener(markerClusterer,"clusterclick",function(cluster)
{
                   var center = cluster.getCenter();
                   var size = cluster.getSize();
                   var markers = cluster.getMarkers();
    });

Also it is now include in http://www.palmenstandorte.de/de/cluster.php



On 16 Jan., 22:35, Rossko <[email protected]> wrote:
> > yes, you're right. But i have no idee to realize two click event.
> > google.maps.event.addListener(map, 'click', function (...
>
> This one listens for clicks on the map.
>
> > google.maps.event.addListener(markerClusterer,"clusterclick",function(
>
> This one listens for clusters being clicked.  Don't create that inside
> the function for the clicklistener, just create it like you you do the
> map listener.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to