MapGL JS API
MapGL JS API is a JavaScript library that allows you to add an 2GIS map to your website or web application.
The library allows you to:
- Add a 3D WebGL map with geodata to your website or to your web application.
- Rotate, pitch, and zoom the map using a mouse or finger gestures.
- Display floor plans for shopping centers and airports.
- Customize the appearance of the map using Map Styles Editor including 3D models, terrain, and other immersive features.
- Add single markers to the map and create marker clusters.
- Display text labels and draw custom shapes like circles and polygons.
- Calculate and display car and pedestrian routes.
- Add tooltips and popups for map objects.
- Customize the set of map control buttons and add your own.
- Work with GeoJSON and raster WMS/WMTS sources.
Geodata complies with OGC standards.
Try moving the center of the map below, changing the zoom level and tilt to experience the immersive graphics mode of the MapGL JS API:
Support
-
If you have any questions while working with the API, ask AI assistant (in the lower-right corner of website), use the documentation search, or send an email to api@2gis.com.
-
If you would like to discuss the capabilities of the API or its integration with your product, please contact a manager.
warning
Use only MapGL JS API methods and fields described in the documentation. Stable operation of undocumented functionality is not guaranteed.