摘要: 首先我们先导入Condition import {mouseOnly} from "ol/events/condition"; 实例化一个Select对象之后设置condition属性,值为上面导入的mouseOnly: let select = new Select({ condition: mo 阅读全文
posted @ 2022-10-11 14:33 碎月 阅读(342) 评论(0) 推荐(0) 编辑
摘要: 绘制-Draw 新建一个用来绘制要素的图层: const vector = new VectorLayer({ source: new VectorSource(), style: { "fill-color": "rgba(255, 255, 255, 0.2)", "stroke-color": 阅读全文
posted @ 2022-10-11 12:08 碎月 阅读(1885) 评论(0) 推荐(0) 编辑