Skip to content
Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time


Interactive map of coronavirus cases, now hosted at and

Adding new state

It is fairly easy to add new state, create pull request when you are done.

  1. Download state level 0 and level 1 KMZ from
  2. Convert KMZ to GEOJSON (
  3. Simplify geojson to ~7% using 'Visvalingam/weighted area' (
  4. Rename file with level 0 to 'state.geojson' and file with level 1 to 'regions.geojson' and place them in 'states/[ISO 3166 of the state]/'
    1. Open regions.geojson in text editor and replace (or add) properties with '"properties":{"regionName":"[region name]"}'.
    2. Open state.geojson in text editor and replace (or add) properties with '"properties":{"stateName":"[ISO 3166 of the state]"}'.
  5. Add 'regionsData.php' in 'states/[ISO 3166 of the state]/', this file should print array as json.
    • The array structure should be like this:
      • array['errorCount'] = number of errors.
      • array['error'] = array of error texts.
      • array['infected'] = number of infected people.
      • array['dead'] = number of deaths.
      • array['recovered'] = number of recoveries.
      • array['infectedRegion'] = array of infections by regions. (for example "array['infectedRegion']['Praha'] = 2066")
      • array['deadRegion'] = array of deaths by regions. (for example "array['deadRegion']['Praha'] = 94")
      • array['recoveredRegion'] = array of recoveries by regions. (for example "array['recovereddRegion']['Praha'] = 1249")
      • array['reproduction'] = current reproduction number
    • The regions in 'infectedRegion', 'deadRegion' and 'recoveredRegion' has to be named same as in regions.geojson.
    • 'deadRegion', 'recoveredRegion' and 'reproduction' are not required.
  6. map.js add:
    1. state into variable 'countries'
    2. translations into variable 'countriesPopupTranslation'
    3. state center into variable 'stateCenter'
    4. state name into variable 'stateIndex'
    5. region names into variable 'regionsIndex'

Now your state should be visible at address/?state=[ISO 3166 of the state]


No releases published


No packages published