Skip to content

Commit

Permalink
Merge pull request conterra#185 from conterra/bugfiexes-editCircle-an…
Browse files Browse the repository at this point in the history
…d-mesurements

Bugfiexes edit circle and mesurements
  • Loading branch information
matthiasstein authored Oct 26, 2023
2 parents 2594559 + 4879504 commit f2c015e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
11 changes: 11 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,17 @@
<scope>test</scope>
</dependency>

<dependency>
<groupId>de.conterra.devnet</groupId>
<artifactId>mapapps-vue-color</artifactId>
<version>2.8.1</version>
</dependency>
<dependency>
<groupId>de.conterra.sdi-extension</groupId>
<artifactId>ct-sdi-extension-js</artifactId>
<version>5.3.1</version>
</dependency>

</dependencies>
<build>
<pluginManagement>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -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<void> {
Expand Down

0 comments on commit f2c015e

Please sign in to comment.