There are many ways to add maps to a Drupal website (see www.drupal.org/node/1704948). This session is going to introduce mapping using the Leaflet JavaScript library.
7. • Add the Geofield and the Address module
• Install Leaflet module and the Leaflet JS library
• Leaflet library goes in sites/all/libraries/leaflet
8.
9.
10. Add a map
• Manage Display of Geofield
• Update format to Leaflet
• Choose OSM Mapnik map
• Update and Save
11.
12.
13. Troubleshooting
• Check Status Report to male sure Leaflet library
is installed correctly
• permissions on sties/all/libraries/leaflet must be
755
• You must be connected to the Internet! (map
tiles are externally hosted)
14. add Leaflet map to a View
• Enable Leaflet Views Module
• create a new view with the Leaflet Map format
• Add Geofield to Fields and exclude from display