Hi Luke
How do I pass parameters on GEvent.addListener?

I am trying to display the data.photos[i].name onclick
My code below responds on clicking a marker by returns a blank variable (on 
both alert and GLog.Write)



var marker = new GMarker(latlng, {title:data.photos[i].name, icon: icon});
            markers.push(marker);
                    

*  GEvent.addListener(marker,"click",function()*
*  {*
*   alert('ALERT: ')+ marker+ data.photos[i].name;*
*                  GLog.write('LOG: ')+ marker+ data.photos[i].name;*
*          });  *
}          



On Tuesday, February 23, 2010 5:10:37 AM UTC+3, Luke (Google Employee) 
wrote:
>
> Hey everyone!
>
> I've just checked in the first version of the Google Maps v3
> MarkerClusterer to the utility library:
>
> http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/
>
> I've tried to keep the interface the same as the v2 library so the
> transition to v3 should hopefully be fairly simple.
>
> If you're interested, have a read of the reference doc:
>
>
> http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/docs/reference.html
>
> Check out some examples here:
>
>
> http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/docs/examples.html
> .
>
> Reply back to this thread if you run into any problems/bugs.
>
>
> Thanks!
>
> Luke
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/eD8Apx5RcJAJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to