{% comment %} This requires the page header to define mapycz-api: mini-api # normal api is OK too gps: lat: ... long: ... zoom: # optional (default = 16) Note: map is not inside accordion, as map tiles don't load at start due to accordion collapsing at start (zero height) {% endcomment %} {% if (page.mapycz_api) and (page.gps.lat) and (page.gps.long) %} {% assign gps_zoom = 16 %} {% if (page.gps.zoom) %} {% assign gps_zoom = page.gps.zoom %} {% endif %}
{% capture href %}https://mapy.cz/zakladni?x={{page.gps.long}}&y={{page.gps.lat}}&z=16&source=coor&id={{page.gps.long}}%2C{{page.gps.lat}}{% endcapture %} {% include buttons/image.html href=href target="_blank" icon="ico--map" class="btn btn--black btn--fulwidth btn--hoveractive mt-4" cta="Zobrazit větší mapu" %} {% endif %}