diff options
| author | Priyansh <[email protected]> | 2021-11-17 02:15:56 -0500 |
|---|---|---|
| committer | Priyansh <[email protected]> | 2021-11-17 02:15:56 -0500 |
| commit | 7dc050e696a388fe8af4f5bf5c40e75f4a7302ee (patch) | |
| tree | 22a50f6efcea3985a455b966c75237f1d29e0b46 | |
| parent | 9266cc5ba7122feb100853da6c8ecf6e6725f049 (diff) | |
| download | temp_pred_arima-7dc050e696a388fe8af4f5bf5c40e75f4a7302ee.tar.xz temp_pred_arima-7dc050e696a388fe8af4f5bf5c40e75f4a7302ee.zip | |
Handle errors for different types of polygon
| -rw-r--r-- | dashboard/templates/index.html | 4 |
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; } |
