Skip to content

Commit

Permalink
Update package version
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Jul 10, 2024
1 parent a33b8c3 commit 459034e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "qwc2",
"version": "2024.07.05-master",
"version": "2024.07.10-master",
"description": "QGIS Web Client 2 core",
"author": "Sourcepole AG",
"license": "BSD-2-Clause",
Expand Down
4 changes: 3 additions & 1 deletion utils/VectorLayerUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ const VectorLayerUtils = {
return params;
},
simplifyFeature(feature) {
if (feature.geometry.type === "MultiPolygon") {
if (!feature.geometry) {
return feature;
} else if (feature.geometry.type === "MultiPolygon") {
return feature.geometry.coodinates.map(part => {
return VectorLayerUtils.simplifyFeature({
...feature,
Expand Down

0 comments on commit 459034e

Please sign in to comment.