Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aliciaduffy/generic-map


https://github.com/aliciaduffy/generic-map

Last synced: 5 days ago
JSON representation

Awesome Lists containing this project

README

        

generic-map
===========

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](http://www.slideshare.net/aliciaduffy/responsive-maps)

To use:

1) 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'

2) Activate Plugin

3) Create a location. Location symbol list choices are here: http://fontawesome.io/icons/ (remove 'fa-')