/
githubmirror
/
tabler
Обзор
Документация
Войти
/
githubmirror
/
tabler
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
preview/pages/map-fullsize.astro
32 строки
1 KB
Paweł Kuna
Improve accessibility across layouts, components, and forms (#2799)
06 авг 2026, 00:40
Не верифицирован
06 авг 2026, 00:40
1effe22
Код
Авторство
О чём код?
--- import DefaultLayout from '@shared/layouts/DefaultLayout.astro' import CaptureScript from '@shared/components/CaptureScript.astro' --- <DefaultLayout title="Full Size Map" pageMenu="plugins.map-fullsize" pageLibs={['google-maps']} sidebar hideTopbar wrapperFull> <h1 class="visually-hidden">Full Size Map</h1> <div class="map flex-fill" id="map-google"></div> <!-- is:inline: google-maps loads via a deferred page-lib <script>; see FormElements1.astro for why a processed (module) script here would run too early and find window.google undefined. --> <CaptureScript> <!-- BEGIN MAP SCRIPT --> <script is:inline> window.tabler_map ??= {} function initMap() { const map = new google.maps.Map(document.getElementById('map-google'), { center: { lat: -34.397, lng: 150.644 }, zoom: 8, }) window.tabler_map['map-google'] = map } document.readyState !== 'loading' ? initMap() : document.addEventListener('DOMContentLoaded', initMap, { once: true }) </script> <!-- END MAP SCRIPT --> </CaptureScript> </DefaultLayout>