From 94900a9ae9f5481e6601d3f09855f6f887549469 Mon Sep 17 00:00:00 2001 From: ethan Date: Tue, 22 Aug 2023 15:40:58 +0800 Subject: [PATCH] add FreehandPolygon --- examples/index.ts | 3 ++ index.html | 1 + src/index.ts | 2 ++ src/polygon/freehand-polygon.ts | 52 +++++++++++++++++++++++++++++++++ 4 files changed, 58 insertions(+) create mode 100644 src/polygon/freehand-polygon.ts diff --git a/examples/index.ts b/examples/index.ts index 611b111..739e066 100644 --- a/examples/index.ts +++ b/examples/index.ts @@ -69,6 +69,9 @@ buttonGroup.onclick = (evt) => { case 'drawFreehandLine': new CesiumPlot.FreehandLine(Cesium, viewer, {}); break; + case 'drawFreehandPolygon': + new CesiumPlot.FreehandPolygon(Cesium, viewer, {}); + break; default: break; diff --git a/index.html b/index.html index 5aceb3d..601ca53 100644 --- a/index.html +++ b/index.html @@ -49,6 +49,7 @@ +