A Jekyll plugin that includes a Liquid Tag for embedding an Open Street Map in a page.
Unlike Google Maps, Open Street Map does not require an API Key. Just install the gem.
gem install jekyll-open_street_map
To embed a map in a page use the open_street_map
tag.
{% open_street_map %}
To place a marker on the map assign the location property in a pages front matter to the latitude and longitude delimited by a comma.
location: 43.084110, -77.665945
You can set properties on the map tag directly use a key="value"
style. The tag supportes the following properties:
Set the height and/or the width of the map to the specified pixel value. The map is by default 150x150 pixels.
{% open_street_map height="100px" width="100px" %}
Set a custom class name for the map DOM element.
Sets a custom id for the map DOM element. The default is open_street_map.
For all feature request and bug reports please submit an issue on the issues page. If you are interested in contributing source please open a PR.
The gem is available as open source under the terms of the MIT License.