google fusion table- not able to color the layer in map after 5 colors

随声附和 提交于 2019-12-08 14:22:38

I am finding that these fillColors are not coming through when calling the FusionTablesLayer. I am using the bucket technique in Fusion but when I call the map out I am just getting the default markers. I would love to be able to use the function inside Fusion since doing it in javascript seems to be redundant.

Fusion Map Calling map using FusionTablesLayer

As noted in the limits for the FusionTablesLayer: You can use the Maps API to add up to five Fusion Tables layers to a map, one of which can be styled with up to five styling rules.

One way to avoid using your five styling rules on setting colors per "masterNarrative" column would be to use the Fusion Tables UI to set the colors rather than do it in javascript via the FusionTablesLayer. To do this, you can create another column in your table called, for example "fillColor", and set the value for that column to be whatever color you want for the row. Then you can go Visualize -> Map, then Configure Styles, and then Fill Color -> Column to select which column the map should be colored by.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!