Commit 698470f3 authored by Eric Duminil's avatar Eric Duminil
Browse files

RegionChooser: Notes

parent 11b11321
...@@ -188,6 +188,8 @@ var regionChooser = (function(){ ...@@ -188,6 +188,8 @@ var regionChooser = (function(){
var poly1 = geoJsonFormat.writeFeatureObject(sketch); var poly1 = geoJsonFormat.writeFeatureObject(sketch);
var intersection_found = false; var intersection_found = false;
intersections.clear(); intersections.clear();
//TODO: Refactor. Smaller functions
//TODO: No global i. feature["id"]
function findIntersection(feature) { function findIntersection(feature) {
try { try {
var jsonIntersection = turf.intersect(poly1, feature["geoJSON"]); var jsonIntersection = turf.intersect(poly1, feature["geoJSON"]);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment