Widget:Floors2gis: различия между версиями

Материал из ultracity
Перейти к навигации Перейти к поиску
Нет описания правки
Нет описания правки
Строка 3: Строка 3:
<html>
<html>
<div id="container" style="width: 800px; height: 600px;"></div>
<div id="container" style="width: 800px; height: 600px;"></div>
<script>
<script
function initMap() {
    charset="utf-8"
     const map = new mapgl.Map('container', {
    src="https://floors-widget.api.2gis.ru/loader.js"
         center: [55.278765, 25.197039],
    id="dg-floors-widget-loader"
         zoom: 19,
></script>
         rotation: -3,
<script charset="utf-8">
        pitch: 45,
     DG.FloorsWidget.init({
         key: 'Your API access key',
         width: '960px',
         height: '600px',
         initData: {
            complexId: '141373143573143',
         },
     });
     });
}
</script>
</script>
<script src="https://mapgl.2gis.com/api/js/v1?callback=initMap" async defer></script>
</html>
</html>
</widget>
</widget>

Версия от 12:11, 7 апреля 2025