Skip to content
Snippets Groups Projects
Commit 391d7b4b authored by Jakob Severin Steffensen Hjelseth's avatar Jakob Severin Steffensen Hjelseth
Browse files

Ordna opp 8)

parent 0791b49b
No related branches found
No related tags found
1 merge request!36Resolve "Intersect"
Pipeline #234878 passed
......@@ -4,10 +4,6 @@ function dissolve() {
var name = document.getElementById("dissolveName").value;
try {
if (layer["type"] == "MultiPolygon") {
layer = multiPolygonToFeatureCollection(layer);
}
var dissolved = turf.dissolve(layer);
var newLayer = L.geoJSON(dissolved);
......
This diff is collapsed.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
This diff is collapsed.
......@@ -15,6 +15,7 @@ function featureCollectionToMultiPolygon(layer) { // layer er her et GeoJSON-lag
}
}
/*
function multiPolygonToFeatureCollection(layer) {
if (layer["type"] == "MultiPolygon") {
var features = [];
......@@ -28,3 +29,4 @@ function multiPolygonToFeatureCollection(layer) {
return turf.featureCollection(features);
}
}
*/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment