So far in the Mapping with Leaflet series, we've taken advantage of the field formatter provided by the Leaflet module to display a map on a page for a piece of content containing location data. This resulted in a single marker on a map. But what about a map of multiple locations? For this, we'll get to use Views and the Leaflet Views module that is included in the Leaflet project download. We'll also address a common problem of transforming postal addresses into geocoded data that a map can use. For this, we'll look at a solution that integrates Geocoder and Address Field modules. As a bonus, I'll walk you through the process of configuring a Feeds Importer to work with the esoteric and possibly confusing Address Field targets and I'll demonstrate how to import .CSV text file of postal addresses into Address Field, which is then geocoded and displayed on a Leaflet map.
This week's release includes:
- Transforming Addresses into Mappable Data
- Importing Data into an Address Field using Feeds
- Creating a Map of Multiple Locations with Views
Next week, we'll wrap up this series with an exploration into a few other configuration possibilities with Leaflet including providing a custom image for a map marker, changing the base map layer, and marker clustering.
Add new comment