Completed overall testing and cases dashboard.
This commit is contained in:
11785
public/maps/ga-13-georgia-counties.json
Normal file
11785
public/maps/ga-13-georgia-counties.json
Normal file
File diff suppressed because it is too large
Load Diff
5030
public/maps/ga-13-georgia-counties.raw.json
Normal file
5030
public/maps/ga-13-georgia-counties.raw.json
Normal file
File diff suppressed because it is too large
Load Diff
13
public/maps/parse-map.js
Normal file
13
public/maps/parse-map.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const fs = require('fs')
|
||||
|
||||
const countyMap = require('./ga-13-georgia-counties.raw.json')
|
||||
|
||||
countyMap.objects.collection.geometries.forEach(county => {
|
||||
const id = county.properties.NAME.toLowerCase().split(' ').join('-')
|
||||
county.properties.name = county.properties.NAME
|
||||
county.properties.id = id
|
||||
delete county.properties.NAME
|
||||
county.id = `ga-13-georgia-counties.${id}`
|
||||
})
|
||||
|
||||
fs.writeFileSync('./ga-13-georgia-counties.json', JSON.stringify(countyMap, null, ' '))
|
||||
Reference in New Issue
Block a user