Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfiexes edit circle and mesurements #185

Merged
merged 2 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading