Hi Guys,
I am trying to create a GPolygon on my map with 2 click events, 1 is
to display an info window and the other to display a streetview at the
bottom of the page, on a single click.
Is this possible?
function createPolygon(map, m_pano, points, linecolour, fillcolour,
title){
var poly2 = new GPolygon(points, linecolour, 1, 1, fillcolour,
0.7, {
clickable: true
});
GEvent.addListener(poly2, 'click', function(point){
map.openInfoWindowHtml(point, title)
m_pano.setLocationAndPOV(point);
});
return poly2;
}
map is available at: http://ws9.saht.co.za/temp/test4.asp
Thanks,
Ismail
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---