摘要:
首先我们先导入Condition import {mouseOnly} from "ol/events/condition"; 实例化一个Select对象之后设置condition属性,值为上面导入的mouseOnly: let select = new Select({ condition: mo 阅读全文
摘要:
绘制-Draw 新建一个用来绘制要素的图层: const vector = new VectorLayer({ source: new VectorSource(), style: { "fill-color": "rgba(255, 255, 255, 0.2)", "stroke-color": 阅读全文