1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-26 11:16:12 +04:00
Files
tabler/preview/pages/map-fullsize.html
Paweł Kuna 4376968bca add Signature Pad feature (#2183)
Co-authored-by: ethancrawford <ethan_jc@hotmail.com>
2025-03-01 12:36:41 +01:00

29 lines
738 B
HTML

---
layout: default
page-libs: [google-maps]
layout-wrapper-full: true
layout-sidebar: true
layout-hide-topbar: true
page-menu: plugins.map-fullsize
permalink: map-fullsize.html
---
{% assign map-id = 'google' %}
<div class="map flex-fill" id="map-{{ map-id }}"></div>
{% capture_script %}
<script>
let map;
{% if environment == 'development' %}window.tabler_map = window.tabler_map || {};{% endif %}
document.addEventListener("DOMContentLoaded", function() {
map = new google.maps.Map(document.getElementById("map-{{ map-id }}"), {
center: { lat: -34.397, lng: 150.644 },
zoom: 8,
});
{% if environment == 'development' %}window.tabler_map["map-{{ map-id }}"] = map;{% endif %}
});
</script>
{% endcapture_script %}