Skip to content

adpena/RespectCampaignMap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RespectCampaignMap

RespectCampaignMap is a static campaign map and data-preparation repository created for Texas AFT's Respect Campaign.

It combines prebundled JavaScript map layers, a browser-facing index.html, and a few Python scripts that were used to assemble or enrich district-level campaign data.

Repository Contents

  • index.html: static web entrypoint
  • Districts*.js, PLAN*.js, and related assets: precomputed map layers and payloads
  • main.py: enrichment script for generating district data outputs
  • convert_to_geojson.py: shapefile-to-GeoJSON conversion helper
  • gen_union_locals_shapefile.py: helper for boundary/local overlay work

Data Dependencies

Some preparation scripts depend on external campaign datasets that are not committed to this repository. Those paths are now configured through environment variables instead of hardcoded machine-specific locations.

Relevant variables include:

  • RESPECT_SCHOOL_DISTRICTS_DIR
  • RESPECT_PEIMS_ACTUAL_FUNDING_BREAKDOWN
  • RESPECT_ENROLLMENT_REPORTS_DIR
  • RESPECT_WAGE_CAMPAIGNS_CSV
  • RESPECT_JOIN_LINKS_CSV
  • RESPECT_REPORT_LINKS_CSV
  • RESPECT_HOUSE_DISTRICTS_CSV
  • RESPECT_SENATE_DISTRICTS_CSV
  • RESPECT_CHARTER_LOSS_CSV
  • RESPECT_SOF_REPORTS_DIR
  • RESPECT_PLANH_SHAPEFILE
  • RESPECT_DISTRICTS_FINAL_GEOJSON

If those variables are unset, the scripts fall back to relative paths that match the original sibling-repo layout used during development.

Local Preview

Because the published experience is static, a simple local web server is enough for review:

python3 -m http.server

Then open http://127.0.0.1:8000/.

License

The source code and original documentation in this repository are released under the MIT License. See LICENSE.

Campaign branding, logos, trademarks, and third-party/public datasets are excluded from that code license. See NOTICE.md.

About

Interactive campaign map for Texas AFT's Respect Campaign.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors