New turf area source
This commit is contained in:
parent
913905001e
commit
b4007c2735
4 changed files with 94 additions and 20 deletions
|
@ -25,7 +25,7 @@
|
|||
//= require graham_scan.min
|
||||
//= require leaflet.freedraw
|
||||
//= require smart_listing
|
||||
//= require turf
|
||||
//= require turf-area
|
||||
//= require franceconnect
|
||||
//= require bootstrap-wysihtml5
|
||||
//= require bootstrap-wysihtml5/locales/fr-FR
|
||||
|
|
|
@ -57,7 +57,7 @@ function get_external_data(latLngs) {
|
|||
|
||||
cadastre_list = [{zoom_error: true}];
|
||||
|
||||
if (turf.area(polygons) < 300000)
|
||||
if (turf_area(polygons) < 300000)
|
||||
cadastre_list = get_cadastre(latLngs);
|
||||
|
||||
display_cadastre(cadastre_list);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue