Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有任何技术可以仅在初始加载时启用融合表热图选项。即,如果我有一个带有 5k+ 标记的融合表地图图层,那么我只想在第一次加载地图时启用热图,之后它应该设置为 false。
是的。创建地图和图层时:
var ftOpts = { query: { select: location_column, from: table_id }, heatmap: { enabled: true } }; layer = new google.maps.FusionTablesLayer(ftOpts); layer.setMap(map);
然后放大:
layer.setOptions( { heatmap: { enabled: false} });