Add a script tag: .
import load from '@2gis/mapgl'; load().then((mapgl) => const map = new mapgl.Map('map-container', center: [37.6156, 55.7680], // [Longitude, Latitude] zoom: 13, key: 'YOUR_ACCESS_KEY', ); ); Use code with caution. Copied to clipboard 2gis/mapgl-terra-draw: TerraDraw adapter for MapGL JS API mapgl js api
Unlike traditional flat maps, it allows users to visualize buildings, terrain, and landscapes in three dimensions with realistic perspective. Add a script tag:
MapGL separates the map data from the visual style. This means you can apply different "skins" or themes to the same underlying map data. Whether you need a dark mode for a dashboard or a high-contrast theme for accessibility, you can achieve it via JSON styling objects. MapGL separates the map data from the visual style
To implement a map, developers typically follow these steps:
Check out the official documentation [here] to get your API key and explore the full suite of available methods.