is it possible to call the openInfoWindowHtml function from the DOM?
i ve got a site with a googleMap with some markers on it an a legend
left of it. when i hover the legend i want to open the related marker.
my code:
GEvent.addListener(marker[divider], 'mouseover', function() {
this.openInfoWindowHtml(this.content['address']);
});
GEvent.addListener(marker[divider], 'mouseout',
function() {
this.closeInfoWindow();
});
/*up to here it works fine*/
if(item['elemId']) {
GEvent.addDomListener(
document.getElementById(item['elemId']),
'mouseover', function() {
GEvent.trigger(marker[divider],
'mouseover');
});
GEvent.addDomListener(
document.getElementById(item['elemId']),
'mouseout', function() {
GEvent.trigger(marker[divider],
'mouseout');
});
}
/*that gives error: a is undefined on main.js
(390) when i
hover*/
anyone knows a solution?
many thanks,
serogen
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---