Google Map API - Fusion Table Layer未在Chrome中显示

时间:2015-03-10 17:40:10

标签: google-maps google-chrome google-fusion-tables

我使用Fusion表中的API和数据创建了Google地图。它在Firefox中运行良好,但图层样式(多边形)不会在Chrome中显示。它似乎在那里,因为它可点击......等等。如果我放大并平移它最终会出现。

layer = new google.maps.FusionTablesLayer({
map: map,
heatmap: { enabled: false },
suppressInfoWindows: true,
query: {
 select: "col2\x3e\x3e0",
 from: FusionTableID,
 where: ""
  },
  options: {
    styleId: 2,
    templateId: 3
  }

});

layer.setMap(map);

1 个答案:

答案 0 :(得分:2)

找到这个帖子,似乎已经解决了这个问题! Google Maps JS APi v3 fusion table layer is not working in Chrome

需要添加此样式:

 #map-canvas img{max-width:none;}
相关问题