aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPriyansh <[email protected]>2021-11-17 02:15:56 -0500
committerPriyansh <[email protected]>2021-11-17 02:15:56 -0500
commit80cf1b3f9228a7e08b127275bc46a0727fa245eb (patch)
tree22a50f6efcea3985a455b966c75237f1d29e0b46
parent23f447d2091ad8cd08d0345a1649b96c3b222e5d (diff)
downloadtemp_pred_arima-80cf1b3f9228a7e08b127275bc46a0727fa245eb.tar.xz
temp_pred_arima-80cf1b3f9228a7e08b127275bc46a0727fa245eb.zip
Handle errors for different types of polygon
-rw-r--r--dashboard/templates/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/dashboard/templates/index.html b/dashboard/templates/index.html
index 0d233fd..94dccc2 100644
--- a/dashboard/templates/index.html
+++ b/dashboard/templates/index.html
@@ -117,7 +117,7 @@
name: city.city
},
geometry: {
- type: "Polygon",
+ type: element.gs_type,
coordinates: element.boundaries.coordinates
}
}
@@ -150,7 +150,7 @@
for (var el of data) {
if (el.type === "administrative") {
- geojson.push({ boundaries: el.geojson, name: el.display_name });
+ geojson.push({ boundaries: el.geojson, name: el.display_name, gs_type: el.geojson.type });
counter += 1;
}