Last active
June 15, 2022 07:10
-
-
Save pvgenuchten/86716e4229736d6999ae4a44c7d8f213 to your computer and use it in GitHub Desktop.
hugo shortcode for mapml map
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Install: | |
Copy this file into /layouts/shortcodes | |
Usage: | |
{{% mapml %}} | |
<mapml-viewer projection="OSMTILE" zoom="0" lat="0.0" lon="0.0" controls style="width:100%;height:400px"> | |
<layer- label="OpenStreetMap" src="https://geogratis.gc.ca/mapml/en/osmtile/osm/" hidden="hidden" checked="checked"></layer-> | |
</mapml-viewer> | |
{{% /mapml %}} | |
Read more at https://maps4html.org/MapML/spec | |
--> | |
<script type="module" src="https://geogratis.gc.ca/mapml/client/web-map/mapml-viewer.js" crossorigin></script> | |
{{ .Inner }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Embed maps into your hugo project in a standardised way