diff --git a/vacs-map-app/package-lock.json b/vacs-map-app/package-lock.json index 065c128..deb824b 100644 --- a/vacs-map-app/package-lock.json +++ b/vacs-map-app/package-lock.json @@ -10,6 +10,7 @@ "dependencies": { "@turf/bbox": "^6.5.0", "@turf/helpers": "^6.5.0", + "@turf/rewind": "^6.5.0", "@vueuse/core": "^10.6.1", "autoprefixer": "^10.4.16", "d3": "^7.8.5", @@ -301,6 +302,29 @@ "url": "https://opencollective.com/turf" } }, + "node_modules/@turf/boolean-clockwise": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/@turf/boolean-clockwise/-/boolean-clockwise-6.5.0.tgz", + "integrity": "sha512-45+C7LC5RMbRWrxh3Z0Eihsc8db1VGBO5d9BLTOAwU4jR6SgsunTfRWR16X7JUwIDYlCVEmnjcXJNi/kIU3VIw==", + "dependencies": { + "@turf/helpers": "^6.5.0", + "@turf/invariant": "^6.5.0" + }, + "funding": { + "url": "https://opencollective.com/turf" + } + }, + "node_modules/@turf/clone": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/@turf/clone/-/clone-6.5.0.tgz", + "integrity": "sha512-mzVtTFj/QycXOn6ig+annKrM6ZlimreKYz6f/GSERytOpgzodbQyOgkfwru100O1KQhhjSudKK4DsQ0oyi9cTw==", + "dependencies": { + "@turf/helpers": "^6.5.0" + }, + "funding": { + "url": "https://opencollective.com/turf" + } + }, "node_modules/@turf/helpers": { "version": "6.5.0", "resolved": "https://registry.npmjs.org/@turf/helpers/-/helpers-6.5.0.tgz", @@ -309,6 +333,17 @@ "url": "https://opencollective.com/turf" } }, + "node_modules/@turf/invariant": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/@turf/invariant/-/invariant-6.5.0.tgz", + "integrity": "sha512-Wv8PRNCtPD31UVbdJE/KVAWKe7l6US+lJItRR/HOEW3eh+U/JwRCSUl/KZ7bmjM/C+zLNoreM2TU6OoLACs4eg==", + "dependencies": { + "@turf/helpers": "^6.5.0" + }, + "funding": { + "url": "https://opencollective.com/turf" + } + }, "node_modules/@turf/meta": { "version": "6.5.0", "resolved": "https://registry.npmjs.org/@turf/meta/-/meta-6.5.0.tgz", @@ -320,6 +355,21 @@ "url": "https://opencollective.com/turf" } }, + "node_modules/@turf/rewind": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/@turf/rewind/-/rewind-6.5.0.tgz", + "integrity": "sha512-IoUAMcHWotBWYwSYuYypw/LlqZmO+wcBpn8ysrBNbazkFNkLf3btSDZMkKJO/bvOzl55imr/Xj4fi3DdsLsbzQ==", + "dependencies": { + "@turf/boolean-clockwise": "^6.5.0", + "@turf/clone": "^6.5.0", + "@turf/helpers": "^6.5.0", + "@turf/invariant": "^6.5.0", + "@turf/meta": "^6.5.0" + }, + "funding": { + "url": "https://opencollective.com/turf" + } + }, "node_modules/@types/web-bluetooth": { "version": "0.0.20", "resolved": "https://registry.npmjs.org/@types/web-bluetooth/-/web-bluetooth-0.0.20.tgz", diff --git a/vacs-map-app/package.json b/vacs-map-app/package.json index 442171b..bb7296d 100644 --- a/vacs-map-app/package.json +++ b/vacs-map-app/package.json @@ -14,6 +14,7 @@ "dependencies": { "@turf/bbox": "^6.5.0", "@turf/helpers": "^6.5.0", + "@turf/rewind": "^6.5.0", "@vueuse/core": "^10.6.1", "autoprefixer": "^10.4.16", "d3": "^7.8.5", diff --git a/vacs-map-app/public/data/african-union-regions-bboxes.geojson b/vacs-map-app/public/data/african-union-regions-bboxes.geojson new file mode 100644 index 0000000..a897719 --- /dev/null +++ b/vacs-map-app/public/data/african-union-regions-bboxes.geojson @@ -0,0 +1,12 @@ +{ +"type": "FeatureCollection", +"name": "AU_regions_bbox", +"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, +"features": [ +{ "type": "Feature", "properties": { "AU_region": "North" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -17.098779296874994, 14.745361328125 ], [ 36.871386718750017, 14.745361328125 ], [ 36.871386718750017, 37.340380859374996 ], [ -17.098779296874994, 37.340380859374996 ], [ -17.098779296874994, 14.745361328125 ] ] ] } }, +{ "type": "Feature", "properties": { "AU_region": "South" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 11.7216796875, -46.962890625 ], [ 40.844531250000017, -46.962890625 ], [ 40.844531250000017, -4.428906250000011 ], [ 11.7216796875, -4.428906250000011 ], [ 11.7216796875, -46.962890625 ] ] ] } }, +{ "type": "Feature", "properties": { "AU_region": "East" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 21.825292968750006, -25.570507812500011 ], [ 51.390234375, -25.570507812500011 ], [ 51.390234375, 22.202441406250003 ], [ 21.825292968750006, 22.202441406250003 ], [ 21.825292968750006, -25.570507812500011 ] ] ] } }, +{ "type": "Feature", "properties": { "AU_region": "West" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -25.341552734375, 4.277392578124989 ], [ 15.963183593750017, 4.277392578124989 ], [ 15.963183593750017, 24.99560546875 ], [ -25.341552734375, 24.99560546875 ], [ -25.341552734375, 4.277392578124989 ] ] ] } }, +{ "type": "Feature", "properties": { "AU_region": "Central" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 6.468164062500023, -13.453808593750011 ], [ 31.274023437500006, -13.453808593750011 ], [ 31.274023437500006, 23.445214843749994 ], [ 6.468164062500023, 23.445214843749994 ], [ 6.468164062500023, -13.453808593750011 ] ] ] } } +] +} diff --git a/vacs-map-app/src/MapExplorer.vue b/vacs-map-app/src/MapExplorer.vue index 1ce0035..30abbed 100644 --- a/vacs-map-app/src/MapExplorer.vue +++ b/vacs-map-app/src/MapExplorer.vue @@ -3,7 +3,11 @@
- + + +