Skip to content

Commit

Permalink
Merge pull request #66 from OnroerendErfgoed/bugfix/65_fout_bij_zone_…
Browse files Browse the repository at this point in the history
…verwijderen

Bugfix/65 fout bij zone verwijderen
  • Loading branch information
AxelVerstappen authored Sep 22, 2020
2 parents 5d4ab01 + fd43bda commit de10735
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/commonjs/zoneerder/components/ol-map.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/commonjs/zoneerder/components/ol-map.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/native-modules/zoneerder/components/ol-map.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/native-modules/zoneerder/components/ol-map.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "oerelia",
"description": "An Aurelia plugin project.",
"version": "0.7.0",
"version": "0.8.0",
"repository": {
"type": "git",
"url": "https://github.com/OnroerendErfgoed/oerelia.git"
Expand Down
4 changes: 2 additions & 2 deletions src/zoneerder/components/ol-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,15 +219,15 @@ export class OlMap {
if (f.getProperties().name === name) {
(this.drawLayer.getSource() as ol.source.Vector).removeFeature(f);
} else {
const geometry = f.getProperties().name.includes('Cirkel') ? ol.geom.Polygon.fromCircle(f.getGeometry())
const geometry = f.getProperties().name.includes('Cirkel') ? ol.geom.Polygon.fromCircle(f.getGeometry())
: f.getGeometry();
coordinates.push(geometry.getCoordinates());
}
});
if (coordinates.length > 0) {
this.deleteCoordinateFromZone(coordinates);
} else {
this.zone.coordinates.splice(0, this.zone.coordinates.length);
this.zone = null;
}
this.geometryObjectList.splice(this.geometryObjectList.indexOf(name), 1);
}
Expand Down

0 comments on commit de10735

Please sign in to comment.