{% comment %} Mini Leaflet Map item feature. This include adds a small leaflet map. E.G> --> {% include feature/mini-map.html latitude="46.725562" longitude="-117.009633" %} Options: - "objectid" = feature a specific item from your metadata that has lat long. Using this option will set the map center and add a single marker to the map. - "latitude" = center of map, required if not using objectid - "longitude" = center of map, required if not using objectid - "height" = height of the mini map in px (default 400px) - "map-zoom" = provide a zoom level, default 10 - "map-link" = true/false, add a button link to the collection's default full map page (default false) - "basemap" = set basemap option, Esri_WorldStreetMap, Esri_NatGeoWorldMap, Esri_WorldImagery. default Esri_WorldImagery. {% endcomment %} {% capture map_id %}mini-map_{{ include.latitude | slugify }}{% endcapture %} {% assign map-item = site.data[site.metadata] | where: "objectid", include.objectid | first %}
{% if include.map-link == true %} View on Full Map{% endif %}