首页 / 浏览问题 / WebGIS / 问题详情
地图上总是莫明显三角和十字线条怎么清除
csy
22EXP 2021年10月21日

这个用的下面的代码添加的遮罩出现的问题

var vectorLayer = new ol.layer.VectorTile({
  source: new ol.source.VectorTileSuperMapRest(vectorTileOptions),
  style: function (feature, resolution) {
    return new ol.style.Style({
      stroke: new ol.style.Stroke({
        color: 'rgba(255, 255, 255, 0.8)',
        width: 1
      }),
      fill: new ol.style.Fill({
        color: "rgba(255, 255, 255,0.7)"
      })
    })
  }
})

1个回答

您好,您是想实现什么样的效果呢,光看上述代码看不出具体的问题,这个三角形和十字线看起来像是vectorlayer图层绘制出来的一部分
1,000EXP 2021年10月22日
我知道是vectorlayer绘制的只是一个遮罩,并没有其他操作啊
是不是superMap自己带的bug啊
检查数据是否有错误,vectorTileOptions和feature
...