A WordPress plugin that provides an interactive GIS map interface for displaying Lewis County voting precincts and election results.
- Interactive precinct map using Leaflet.js
- GIS data integration for accurate precinct boundaries
- Integration with LCD Election Results plugin
- Admin interface for managing GIS data files
- Shortcode support for embedding maps
- Real-time precinct search functionality
- Responsive design for all screen sizes
- Upload the
lcd-county-mapdirectory to your/wp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress
- Upload your GIS data files through the admin interface (County Map > Settings)
- WordPress 5.0 or higher
- PHP 7.2 or higher
- Write permissions for the
gis-precinctsdirectory - Compatible GIS data files (Shapefiles in ZIP format)
[lcd_precinct_map]
[lcd_precinct_map height="800px" width="100%"]
[lcd_election_map]
lcd-county-map/
├── assets/
│ ├── css/ # Stylesheet files
│ └── js/ # JavaScript files including Leaflet integration
├── gis-precincts/ # Directory for GIS data storage
│ ├── precincts_ref/
│ └── voting_ref/
├── includes/
│ ├── class-election-integration.php # Election results integration
│ └── shapefile.inc.php # Shapefile processing
└── lcd-county-map.php # Main plugin file
The plugin expects GIS data in the following format:
- Zipped Shapefile format (.shp, .dbf, .prj, etc.)
- Two main data types:
- Precinct boundaries (precincts.zip)
- Voting data (voting.zip)
This plugin integrates seamlessly with the LCD Election Results plugin to display:
- Election results by precinct
- Color-coded precincts based on voting data
- Interactive data visualization
Access the plugin settings through: WordPress Admin > County Map
Features available in the admin interface:
- Upload and manage GIS data files
- View file upload history
- Manage map display settings
| Parameter | Description | Default | Example |
|---|---|---|---|
| height | Map height | 600px | height="800px" |
| width | Map width | 100% | width="80%" |
| show_election_data | Show election results | false | show_election_data="true" |
For technical support or feature requests, please contact the LCD development team.
This plugin is licensed under GPL v2 or later.