Widget:Floors2gis: различия между версиями
Перейти к навигации
Перейти к поиску
Rodion (обсуждение | вклад) Нет описания правки Метка: отменено |
Rodion (обсуждение | вклад) Нет описания правки Метка: отменено |
||
Строка 3: | Строка 3: | ||
<html> | <html> | ||
<div id="container" style="width: 800px; height: 600px;"></div> | <div id="container" style="width: 800px; height: 600px;"></div> | ||
<script | <script type="text/javascript"> | ||
charset= | (function() { | ||
var script = document.createElement('script'); | |||
script.charset = 'utf-8'; | |||
script.src = 'https://floors-widget.api.2gis.ru/loader.js'; | |||
script.id = 'dg-floors-widget-loader'; | |||
script.onload = function() { | |||
DG.FloorsWidget.init({ | |||
width: '960px', | |||
height: '600px', | |||
initData: { | |||
} | complexId: '{{{complexId}}}', | ||
}); | }, | ||
}); | |||
}; | |||
document.head.appendChild(script); | |||
})(); | |||
</script> | </script> | ||
</html> | </html> |
Версия от 13:17, 7 апреля 2025
Использование
Используйте виджет с параметром complexId:
Где 123456789 - ID комплекса в 2GIS.