Completed overall testing and cases dashboard.
This commit is contained in:
		
							
								
								
									
										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