This is an example plugin demonstrating how to map locations in WordPress using custom post types and leafletJS. Created for WordCamp Raleigh 2013 - slides here: http://www.slideshare.net/aliciaduffy/responsive-maps
To use:
-
Replace API-KEY Placeholders
- Google Maps API Key / generic-map.php line 172 wp_register_script( 'googlemaps', 'http://maps.googleapis.com/maps/api/js?v=3&key=API-KEY&sensor=false' );
- Cloudmade API Key, or other map tile source / leaflet-config.js line 6 L.tileLayer('http://{s}.tile.cloudmade.com/API-KEY/1/256/{z}/{x}/{y}.png'
-
Activate Plugin
-
Create a location. Location symbol list choices are here: http://fontawesome.io/icons/ (remove 'fa-')