Hi,
Ive just started investigating the google fusion windows as i think
this will make life easier, expecially being able to get any spatial
data into google maps just by simply call the feature set along with
the user id.
Ive desinged a bog standard google map page that simply call the
selected fusion table as shown below:
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<style type="text/css">
html { height: 100% }
body { height: 100%; margin: 0; padding: 0 }
#map_canvas { height: 100% }
</style>
<script type="text/javascript"
src="http://maps.googleapis.com/maps/api/js?
key=YOUR_API_KEY&sensor=false">
</script>
<script type="text/javascript">
var map = null;
function initialize() {
var myOptions = {
zoom: 12,
center: new google.maps.LatLng(53.193309, -1.259932),
mapTypeControl: true,
mapTypeCOntrolOptions: {style:
google.maps.MapTypeControlStyle.DROPDOWN_MENU},
navigationControl: true,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
map = new google.maps.Map(document.getElementById("map_canvas"),
myOptions);
var layer = new google.maps.FusionTablesLayer({
query: {
select: 'AnotherTest',
from: '2462761'
},
});
layer.setMap(map);
};
</script>
</head>
<body onload="initialize()">
<div id="map_canvas" style="width:100%; height:100%">
</div>
</body>
</html>
Im now trying to add a selection of the fields stored in the fusion
table to the map, but cant work out how and where to place the
infowindow command into the script above.
Has anybody had any dealing with this before, and if so, would they
mind just informing me of where this "infowindow" script needs to be
placed?
Many Thanks in advance
Ian Usher
Open Source GIS Consultant
www.open-source-gis.co.uk
--
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.