Skip to content

Commit

Permalink
Fix geometries not being editable
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-va committed Feb 5, 2025
1 parent a77f819 commit de7ac7e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ui/src/toolbox/GeometryController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ export class GeometryController {
}

private onAddGeometry(type: GeometryTypes, clickEvent?: {position: Cartesian2}) {
console.log('addders');
if (this.noEdit) return;
const currentType = this.draw!.type;
if (this.draw!.active) {
Expand Down Expand Up @@ -454,6 +455,7 @@ export class GeometryController {
}

addGeometry(attributes: NgmGeometry) {
console.log('adderino', attributes);
const type = attributes.type;
const name = type.charAt(0).toUpperCase() + type.slice(1);
const entityAttrs: Entity.ConstructorOptions = {
Expand All @@ -471,8 +473,8 @@ export class GeometryController {
description: attributes.description ?? '',
image: attributes.image ?? '',
website: attributes.website ?? '',
editable: attributes.editable ?? attributes.editable,
copyable: attributes.copyable ?? attributes.copyable,
editable: attributes.editable ?? true,
copyable: attributes.copyable ?? true,
}
};
const color = attributes.color;
Expand Down

0 comments on commit de7ac7e

Please sign in to comment.