View on GitHub

Jekyll-mapping

Easily embed maps on Jekyll sites, with support for Google Maps and OpenStreetMap

download .ZIPdownload .TGZ

A post with multiple locations

This page has a latitude and longitude set, so it is plotted at that location on the front page. However, it’s also got a few secondary locations set, which are plotted on this page’s map (but not on the front page).

The YAML frontmatter for this post looks like this:

---
layout: post
title: A post with multiple locations
mapping:
    latitude: -14
    longitude: 32
    locations:
        -   title: Foo location
            latitude: 15
            longitude: 10
        -   title: Bar location
            latitude: -13
            longitude: -3

date: 2012-07-15
published: true
---