Skip to content

Instantly share code, notes, and snippets.

View dustinc's full-sized avatar

Dustin Coffey dustinc

  • Ellijay, GA
  • 23:22 (UTC -04:00)
View GitHub Profile
@boutell
boutell / gist:3941578
Created October 23, 2012 21:10
Display a Google map with markers linking to pages
// Display a map with markers that link to other pages. Each marker must
// have latitude, longitude and slug properties. There must also be a
// a 'url' option which is used to build the links. The following
// wildcards are replaced in the url: ID (with the id), SLUG (with the
// slug property), PUBLISHED (with /year/month/day taken from published_at),
// and START (with /year/month/day taken from start_date). In other words,
// you can pass most array-hydrated Doctrine objects, including Apostrophe
// blog posts and events, and easily generate links back to them.
// The hover text title of the marker is taken from title if present,