javascript - Google Maps API v3 & fusion layers: polygon opacity -


I'm trying to import the fusion layer of polygons in a Google map via API v3. Map and fusion layer is coming through fine, but fillOpacity and fillColour fusion to take effect after you save the table or Maps API:

  var fusionTableId = "1Rd2LBEusHQsjsMAVsgYm_E_4OlpqgSb07ojJRL3O"; fusionLayer = new google.maps.FusionTablesLayer (fusionTableId, {suppressInfoWindows: True, Map: Map styles: [{polygonOptions: {fillColor: "# 00FF00", fillOpacity: 0.3}}]}); FusionLayer.setMap (map);  

Polygon is coming through a default red color and I think I can not make any combination of changes to change the color.

Ideally I just opacity would like to change by 1%, but I've tried to change the color (as above) with no joy

Any hints / Tips?

Thank you very much

You are using the "old" FusionTablesLayer syntax < Code> FusionTablesLayer (fusionTableId, Options: FusionTablesLayerOptions)

is: FusionTablesLayer (option: FusionTablesLayerOptions) (which supports the dynamic style you are trying to use):

< pre> var Fugntiblaidi = "1 RD 2 Elbiiyuesackyuesmsmajijimmadiooelpikjisbi 0 0 Jejelel 3 O"; FusionLayer = {google.maps.FusionTablesLayer ({suppressInfoWindows: true, map: map, query: {to: fusiontailide, select: "geometry"}, style: [{polygon option: {fillcolor: "# 00FF00", fillOpacity: 0.3}}]}); FusionLayer.setMap (map);

(as you've found)


Comments