首页 / 浏览问题 / WebGIS / 问题详情
supermap iserver怎样将query查询到的地块的透明度逐渐变小?
8EXP 2020年06月23日
我使用的是supermap iserver for openlayers,query查询到的满足条件的地块会高亮显示,请问怎样设置高亮的透明度,让透明度动态变化逐渐变小?

1个回答

您好           var resultLayer = new ol.layer.Vector({
                source: bufferSource,
                style: new ol.style.Style({
                    stroke: new ol.style.Stroke({
                        color: 'blue',
                        width: 1
                    }),
                    fill: new ol.style.Fill({
                        color: 'rgba(255, 0, 0, 1)'//a取值(0-1)可改透明度
                    })
                })
            });
3,352EXP 2020年06月24日
...