3

Материал из ultracity
Версия от 11:45, 7 апреля 2025; Rodion (обсуждение | вклад) (Новая страница: «<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>2GIS Map API</title> <meta name="description" content="Example of a building with floors" /> <style> html, body, #container { margin: 0; width: 100%; height: 100%; overflow:...»)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)
Перейти к навигации Перейти к поиску

<!DOCTYPE html> <html lang="en">

   <head>
       <meta charset="UTF-8" />
       <meta name="viewport" content="width=device-width, initial-scale=1.0" />
       <title>2GIS Map API</title>
       <meta name="description" content="Example of a building with floors" />
       <style>
           html,
           body,
           #container {
               margin: 0;
               width: 100%;
               height: 100%;
               overflow: hidden;
           }
       </style>
   </head>
   <body>
       <script>
           function initMap() {
               const map = new mapgl.Map('container', {
                   center: [55.278765, 25.197039],
                   zoom: 19,
                   rotation: -3,
                   pitch: 45,
                   key: 'Your API access key',
               });
           }
       </script>
       <script src="https://mapgl.2gis.com/api/js/v1?callback=initMap" async defer></script>
   </body>

</html>