I have a Google Map with 3 layers on it.
- a) Region
- b) State
- c) County
They appear when you zoom in the map.
Here is the code - https://jsfiddle.net/djz43usz/
//county level
if(zoom_level >= 7) {
clearRegion();
marker_point = country_center;
id = c_id;
area_type="COUNTY";
mark_center();
layer = new google.maps.FusionTablesLayer({
query: {
select: '\'geometry\'',
from: '1fio1qgy5HkinUDKqYvREIlSoBaHjl2RBe3DLJa38'
},
styles: [{
polygonOptions: {
fillColor: '#000000',
fillOpacity: 0.001
}
},{
where: "'GEO_ID2' IN ("+draw_str.toString()+")",
polygonOptions: {
fillOpacity: 0.3
}
}]
});
layer.setMap(map);
}
});
Region and state works well. But for county, fusion layer doesn't work. Is there anyway I can resolve it?
This is how it looks right now: