3
<!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>