Skip to content

catrawalkar/electionmap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

electionmap

Simple tool to locate electoral constituency for voting and candidate details.

Map Data

Constituency boundaries

Constituency shapefiles sourced from datameet maps and hosted on Mapbox

Mapbox tilesets

Constituency details API use Mapbox Tilequey API

https://api.mapbox.com/v4/planemad.3picr4b8/tilequery/<LONGITUDE>,<LATITUDE>.json?limit=5&radius=0&dedupe=true&access_token=<MAPBOX_ACCESS_TOKEN>

Basemap data

Place locations and street level details are from the OpenStreetMap Project. Data updates on OSM are reflected on the map in a week.

Map style

Basemap showing constituency boundaries with street details designed in Mapbox Studio.

Mapbox GL JS style id planemad/cjoescdh20cl62spey0zj3v19

Contributing

Get the code and start the development server with live preview. Requires node.

git clone https://github.com/publicmap/electionmap.git
cd electionmap
npm install
npm run start

If you made changes to the js scripts, do npm run build to compile the final javascript file to js/dist and commit them before publishing. Do NOT make changes directly to files inside the dist/ folder.

About

Electoral map tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 71.6%
  • HTML 28.4%