We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9921c56 commit dc55de0Copy full SHA for dc55de0
manager_dashboard/manager_dashboard/js/forms.js
@@ -148,9 +148,9 @@ function openFile(event) {
148
// check project size
149
150
area = turf.area(feature)/1000000 // area in square kilometers
151
- maxArea = (20 - zoomLevel) * (20 - zoomLevel) * 1250
+ maxArea = (23 - zoomLevel) * (23 - zoomLevel) * 200
152
console.log('project size: ' + area + ' sqkm')
153
- if (area > 5000) {
+ if (area > maxArea) {
154
throw 'project is to large: ' + area + ' sqkm; ' + 'max allowed size for this zoom level: ' + maxArea + ' sqkm'
155
}
156
info_output.innerHTML += 'Project Size: ' + area + ' sqkm<br>';
0 commit comments