javascript - 如何防止 OpenLayers 应用像素提示?
问题描述
我正在使用 OpenLayers 5.3.0,我发现它将像素提示应用于样式。两个同心圆不是完全居中的。
这是样式呈现特定功能的代码:
style = [
new Style({
image: new Circle({
radius: orangeRadius,
fill: new Fill({
color: '#f4b04a'
}),
anchor: [0.5, 0.5],
}),
})
, new Style({
image: new Circle({
radius: greenRadius,
stroke: new Stroke({
color: '#48bfa5'
, width: 3
}),
anchor: [0.5, 0.5],
}),
})
];
这就是我得到的:
如何禁用像素提示?
谢谢!
解决方案
推荐阅读
- python - 我正在尝试连接我的 postgres 数据库,但我得到了这个 socket.gaierror: [Errno 11001] getaddrinfo failed
- php - 使用 Plokko Firebase 向多个令牌发送 FCM 通知
- python - 我可以在运行时将 Jenkins 作业阶段添加到管道吗?
- mysql - DROP Table 正在为元数据锁定 MYSQL 提供状态
- laravel - Vue.js/Laravel:将类别 ID 传递给 Vue.js 组件
- javascript - 即使事件是由其子元素触发的,如何仅在父元素上执行回调?
- python - Pandas数据框列值与列表中的元素明智数值比较
- python-3.x - 与 Django 模型中的 postgresql uuid DEFAULT uuid_generate_v4() 有什么相似之处?
- python-3.x - 如何在 Python 中处理大 WAV 文件而不会出现内存错误?
- css - 在 CSS 动画中根据其长度移动文本