Deck2gisLayer is a class that allows you to create custom style layers for a MapGL map based on deck.gl layers. In other words, Deck2gisLayer helps you render any deck.gl layer inside MapGL.
To use deck.gl layers with MapGL, you need to include the
Deck2gis-layer plugin and the
deck.gl framework in your project. To do this, add the following lines after the main MapGL script:
<script src="https://unpkg.com/@2gis/deck2gis-layer@^1/dist/deck2gislayer.js"></script> <script src="https://unpkg.com/deck.gl@latest/dist.min.js"></script>
Or you can install required packages using npm:
npm install @2gis/deck2gis-layer @deck.gl/core @deck.gl/layers