Will
asked on
GoogleFusion Table and Googlemaps V3 API Proble displaying geometry
I have a Google Fusion Table, which is a geographic geometric place, renders fine in GoogleFusion. I am trying to get it to display on my google map using the following code. Can anyone see why it doesn't render the shape. Map renders fine.
SOURCE CODE:
Thank you
SOURCE CODE:
window.onload = function() {
// function initialize()
// {
var myCenter=new google.maps.LatLng(39.2,-75.036699);
var myPoint=new google.maps.LatLng(39.3903478,-75.05);
var mapProp = {
center:myCenter,
fences:GeoFence,
zoom:12,
mapTypeId:google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("googleMap"), mapProp);
var layer = new google.maps.FusionTablesLayer({
query: {
select: 'geometry',
from: '1UjPsmyos6_MieyGJbCoZpgSoOWprtaQA2kIVW_MJ'
},
styles: [{
polygonOptions: {
fillColor: '#FF0000',
fillOpacity: 0.3
}
}]
});
layer.setMap(googleMap);
Thank you
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.