1、安装并引入
@antv/l7-draw
2、事件:DrawEvent;点:DrawPoint;圆形:DrawCircle;矩形:DrawRect;多边形:DrawPolygon;
3、实例化 Draw
import {
DrawEvent, DrawCircle, DrawRect, DrawPolygon, DrawPoint } from '@antv/l7-draw'
let drawPoint
const handlePoint = () =>{
drawPoint = new DrawPoint(scene, {
// Draw 的配置 options
autoActive: false,
editable: false,
helper: false,//开启绘制时,鼠标上的提示功能
style: {
point: {
normal: {
shape: 'imageName01', size: 10 },
hover: {
shape