map-fullsize.html 779 B

12345678910111213141516171819202122232425262728293031
  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: base.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_global scripts %}
  13. <script>
  14. // @formatter:off
  15. let map;
  16. {% if environment == 'development' %}window.tabler_map = window.tabler_map || {};{% endif %}
  17. document.addEventListener("DOMContentLoaded", function() {
  18. map = new google.maps.Map(document.getElementById("map-{{ map-id }}"), {
  19. center: { lat: -34.397, lng: 150.644 },
  20. zoom: 8,
  21. });
  22. {% if environment == 'development' %}window.tabler_map["map-{{ map-id }}"] = map;{% endif %}
  23. });
  24. // @formatter:on
  25. </script>
  26. {% endcapture_global %}