From 4b5ddcc09e1302c6e0fad56cde46c41a3b40f61d Mon Sep 17 00:00:00 2001 From: Nick Jakuschona Date: Thu, 26 Oct 2023 15:10:08 +0200 Subject: [PATCH 1/2] add vue-color dependency --- pom.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pom.xml b/pom.xml index c257460..9c4ebff 100644 --- a/pom.xml +++ b/pom.xml @@ -82,6 +82,17 @@ test + + de.conterra.devnet + mapapps-vue-color + 2.8.1 + + + de.conterra.sdi-extension + ct-sdi-extension-js + 5.3.1 + + From 4879504828ad8097d642543ec9c09f2770f15330 Mon Sep 17 00:00:00 2001 From: Nick Jakuschona Date: Thu, 26 Oct 2023 15:11:02 +0200 Subject: [PATCH 2/2] transform constructed circle to polygon #183 --- .../ConstructionController.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/js/bundles/dn_sketchingenhanced-construction/ConstructionController.ts b/src/main/js/bundles/dn_sketchingenhanced-construction/ConstructionController.ts index 648771f..66f1990 100644 --- a/src/main/js/bundles/dn_sketchingenhanced-construction/ConstructionController.ts +++ b/src/main/js/bundles/dn_sketchingenhanced-construction/ConstructionController.ts @@ -20,7 +20,7 @@ import SketchingEnhancedModel from "dn_sketchingenhanced/SketchingEnhancedModel" import ConstructionModel from "./ConstructionModel"; import ConstructionHistory from "./ConstructionHistory"; import Circle from "esri/geometry/Circle"; -import { Polyline } from "esri/geometry"; +import { Polygon, Polyline } from "esri/geometry"; import { pointFromDistance } from "esri/geometry/support/geodesicUtils"; import type CoordinateTransformer from "coordinatetransformer/CoordinateTransformer"; @@ -108,6 +108,9 @@ export default class ConstructionController { radius: radius, radiusUnit: "meters" }); + const json = graphic.geometry.toJSON(); + const poly = Polygon.fromJSON(json); + graphic.geometry = poly; } private async createPolyline(graphic: __esri.Graphic, length: number): Promise {