openlayers设置图层显示层级
在声明图层的时候,加一个zIndex就好了
let self = this;
self.vectorLayer = new WebGLPointsLayer({
source: self.vectorSource,
style: self.deviceIconStylew, //图片样式设置
zIndex: 9999,
});
效果图:(需求是要让那个点在行政区边界上)
openlayers设置图层显示层级
在声明图层的时候,加一个zIndex就好了
let self = this;
self.vectorLayer = new WebGLPointsLayer({
source: self.vectorSource,
style: self.deviceIconStylew, //图片样式设置
zIndex: 9999,
});
效果图:(需求是要让那个点在行政区边界上)