Release Day: Geocoding Addresses and Mapping Multiple Locations

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:

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

Filtered HTML

  • Web page addresses and email addresses turn into links automatically.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <code class> <ul type> <ol start type> <li> <dl> <dt> <dd><h3 id> <p>
  • Lines and paragraphs break automatically.

About us

Drupalize.Me is the best resource for learning Drupal online. We have an extensive library covering multiple versions of Drupal and we are the most accurate and up-to-date Drupal resource. Learn more