Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Jekyll plugin for embedding Google Maps with filterable, clustered location points in Jekyll sites.
Jekyll Maps is a Jekyll plugin that embeds Google Maps with filterable, clustered location points into any page of a Jekyll site.
Jekyll Maps is an open-source Ruby gem and Jekyll plugin that adds a google_map Liquid tag to your site. It accepts location data from page front matter, posts, custom collections, or data files and renders a Google Map with markers. The plugin requires a Google Maps JavaScript API key, which you configure in _config.yml. It was created by ayastreb and is distributed under the MIT License.
_data directories; the src attribute lets you point to a specific folder like _posts/2016 or _data/my_points.lang="en" to a google_map tag to show only locations whose documents have matching front-matter values._config.yml using maps.google.marker_cluster.enabled: false or per tag with no_cluster.width and height on the tag, and assign a custom CSS class via class for styling.latitude, longitude, marker_title, marker_img, and marker_url attributes to create a single-marker map without external data.gem 'jekyll-maps' and list it in the plugins array in _config.yml.src="_posts/2016"._data sub-folder and display them on a map page.First, add the gem to your Gemfile and _config.yml. Next, obtain a Google Maps JavaScript API key and set it under maps.google.api_key. Then add location data to front matter or data files, and insert {% google_map %} in a template. The plugin reads the location data, applies any filters, and renders a Google Map with the configured dimensions.
Jekyll Maps is released under the MIT License, so it is free to use, copy, and distribute.
Yes, you must have a Google Maps JavaScript API key. Add it to _config.yml under maps.google.api_key. The plugin will not render maps without a valid key.
In your post's YAML front matter, define location as a list of objects, each with latitude and longitude. You can optionally include title, image, and url for each marker.
Yes, use src="_data/my_points" in the google_map tag to load location entries from all data files in that sub-folder.
Marker Clusterer is enabled by default. To turn it off globally, set maps.google.marker_cluster.enabled: false in _config.yml, or add no_cluster to an individual tag to disable it for that map.
Yes, each marker can have a custom image. When defining locations in front matter or data files, include an image property; when placing a single marker directly in the tag, use marker_img.
