@wenrenfangge/cesium-draw
v1.0.4
Published
<!-- * @Author: 闻人放歌 [email protected] * @Date: 2024-10-21 09:15:24 * @LastEditors: 闻人放歌 [email protected] * @LastEditTime: 2024-10-23 19:31:03 * @FilePath: /cesiumDraw/Users/wenrenfangge/Documents/wenrenfangge-studio/frontEnd/cesium-draw/R
Downloads
41
Maintainers
Readme
Usage Guide
Add plugins to the project
npm
npm install @wenrenfangge/cesium-draw
pnpm
pnpm add @wenrenfangge/cesium-draw
yarn
yarn add @wenrenfangge/cesium-draw
Used in the project
import { DrawIrregular } from '@wenrenfangge/cesium-draw';
// The constructor must be used after cesium initialization is completed and the viewer is obtained
const irregularDraw = new DrawIrregular(viewer);
irregularDraw.onDrawFinish = (drawData) => {
// handle draw data
}
const drawIrregularGraphic = () => {
irregularDraw.drawings();
}