Some of my maps include polylines and while I have not made them
clickable yet, I intend to add that feature.
It seems simple enough:
var poly=new google.maps.Polyline({clickable:true});
poly.setPath(path);
poly.setMap(map);
google.maps.event.addListener(poly,'click', function() {
// Code to display infowindow
});
Try building a small demo map and if it does not work then post a
link.
Posting a link to a small busted map is the best way to get help.
By "small" I mean minimal code.
--
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.