Deck2gisLayer | 2GIS Documentation


Deck2gisLayer is a class that allows you to create custom style layers for a MapGL map based on layers. In other words, Deck2gisLayer helps you render any layer inside MapGL.

To use layers with MapGL, you need to include the Deck2gis-layer plugin and the framework in your project. To do this, add the following lines after the main MapGL script:

<script src="^2/dist/deck2gislayer.js"></script>
<script src="^8/dist.min.js"></script>

Or you can install required packages using npm:

npm install @2gis/deck2gis-layer