Odd fusion table map embedding – all red areas

好久不见. 提交于 2019-12-13 03:18:34

问题


I'm developing a fusion table map with filled areas. On the Google Fusion Table web app it works properly ( link ). But when I try to embed it, all the areas come out to be all red ( link ).

Why is this happening? I've tried to open the site from another computer - but same issue.

Thanks,

Elisa


回答1:


This thread in the Fusion Tables Users Group (and the thread referenced in it) is probably applicable. There are now multiple styles available in the "new" look, if you don't reference the correct one, you won't get the style you configured.

You may need to set the style id appropriately. This query sets the style id to 2:

var layer = new google.maps.FusionTablesLayer({ 
  query: { 
    select: locationColumn, 
    from: tableId 
  }, 
  styleId: 2, 
  map: map 
}); 

This is described in the Fusion Tables Documentation




回答2:


I solved by rolling back to the Classic Look. Please, team, check what is going on with the new look.



来源:https://stackoverflow.com/questions/14082518/odd-fusion-table-map-embedding-all-red-areas

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