map-fullsize.html 738 B

1234567891011121314151617181920212223242526272829
  1. ---
  2. layout: default
  3. page-libs: [google-maps]
  4. layout-wrapper-full: true
  5. layout-sidebar: true
  6. layout-hide-topbar: true
  7. page-menu: plugins.map-fullsize
  8. permalink: map-fullsize.html
  9. ---
  10. {% assign map-id = 'google' %}
  11. <div class="map flex-fill" id="map-{{ map-id }}"></div>
  12. {% capture_script %}
  13. <script>
  14. let map;
  15. {% if environment == 'development' %}window.tabler_map = window.tabler_map || {};{% endif %}
  16. document.addEventListener("DOMContentLoaded", function() {
  17. map = new google.maps.Map(document.getElementById("map-{{ map-id }}"), {
  18. center: { lat: -34.397, lng: 150.644 },
  19. zoom: 8,
  20. });
  21. {% if environment == 'development' %}window.tabler_map["map-{{ map-id }}"] = map;{% endif %}
  22. });
  23. </script>
  24. {% endcapture_script %}