我已经为我的地图调整了这个例子:
https://developers.google.com/fusiontables/docs/samples/dynamic_styling_template
但我希望边框的不透明度为0(所以没有人看到它)。我想我必须在这个代码的和平中使用strokeOpacity:0.0,但是我无法让它工作
// Apply the style to the layer & generate corresponding legend
function applyStyle(map, layer, column) {
var columnStyle = COLUMN_STYLES[column];
var styles = [];
for (var i in columnStyle) {
var style = columnStyle[i];
styles.push({
where: generateWhere(column, style.min, style.max),
polygonOptions: {
fillColor: style.color,
fillOpacity: style.opacity ? style.opacity : 0.8
}
});
}
答案 0 :(得分:0)
您是否看过PolygonOptions
这似乎是你能做的最好的事情:
strokeOpacity: 0.0001,
strokeWeight: 0,
strokeColor: style.color,
更新: 看起来像strokeOpacity:0.0不起作用;尝试一些非常小的东西,比如0.0001。
答案 1 :(得分:0)
您必须将其设置为1%,即:
strokeOpacity:0.01