Skip to content

Commit

Permalink
Merge pull request #27 from wmo-raf/dev
Browse files Browse the repository at this point in the history
Updates
  • Loading branch information
erick-otenyo authored May 16, 2024
2 parents 68d9c6f + 15422e0 commit d9f04ed
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ BoundaryPolygonWidget.prototype.addAdminBoundaryLayer = function () {
}

const truncatedFeature = turf.truncate(feature, {
precision: 2,
precision: 6,
coordinates: 2,
mutate: true
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class PolygonDrawWidget {


const truncatedFeature = turf.truncate(feature, {
precision: 2,
precision: 6,
coordinates: 2,
mutate: true
})
Expand Down
2 changes: 1 addition & 1 deletion capeditor/static/capeditor/js/widget/polygon-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ PolygonWidget.prototype.setDrawData = function (featureGeom) {

// truncate geometry
const geometry = turf.truncate(featureGeom, {
precision: 2,
precision: 6,
coordinates: 2,
mutate: true
})
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = capeditor
version = 0.5.5
version = 0.5.6
description = Wagtail based CAP composer
long_description = file:README.md
long_description_content_type = text/markdown
Expand Down

0 comments on commit d9f04ed

Please sign in to comment.