Hi All,
I'd like to have a Google Map populated with markers from a Fusion
Table that display their Info Windows when the mouse hovers over the
marker. I know you can't set mouseover events in kml, so I've been
trying to recreate the Fusion Table map using the JS API with a
mouseover function written into it. I've got something like this,
which doesn't work, and I suspect the problem is coming from the fact
that the "markers" are being called from the Fusion Table and perhaps
are not being written on the map as markers?
<head>
<script>
...
layer = new google.maps.FusionTablesLayer(139529);
layer.setMap(map);
...
<script>
</head>
<body>
...
<script>
//<![CDATA[
if (GBrowserIsCompatible()) {
function createMarker(point,html) {
var marker = new GMarker(point);
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml(html);
});
GEvent.addListener(marker,"mouseover", function() {
marker.openInfoWindowHtml(html);
});
return marker;
}
]]>//
</script>
I'm VERY new to JS and this API, so any help would be much
appreciated!
Thanks
--
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.