融合表动态地图strokeOpacity [英] Fusion tables dynamic maps strokeOpacity

查看:80
本文介绍了融合表动态地图strokeOpacity的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为地图调整了此示例:

I have tweaked this example for my map:

https://developers.google.com/fusiontables/docs/samples/dynamic_styling_template

但是我希望边框的不透明度为0(所以没有人看到它).我想我必须在一下代码中使用strokeOpacity:0.0做一些事情,但我无法使其工作

But i want the opacity of the border to be 0 (so nobody sees it). I guess i have to do something in this peace of code with strokeOpacity: 0.0, but I can't get it to work

  // 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
        }
      });
    }

推荐答案

您必须将其设置为1%,即:

You have to set it to 1% ie:

strokeOpacity:0.01

strokeOpacity: 0.01

这篇关于融合表动态地图strokeOpacity的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆