Chevron DownAPI Reference

Use layers with the ArcGIS API for JavaScript.

The functionality exported by this module must be loaded asynchronously using the loader function loadArcGISModules. This function can be used to load any module that ships with the ArcGIS API for JavaScript, plus an additional arcGIS module that acts as an interface between and ArcGIS.

2D integration with MapView is supported by the DeckLayer class.

3D integration with SceneView is experimental: see the DeckRenderer class.


Include the Standalone Bundle

<script src="^8.0.0/dist.min.js"></script>
<!-- or -->
<script src="^8.0.0/dist.min.js"></script>
<script src="^1.0.0/dist.min.js"></script>
<!-- usage -->
<script type="text/javascript">
  const {loadArcGISModules} = deck;

Install from NPM

npm install
# or
npm install
import {loadArcGISModules} from '';

]).then(({DeckLayer, modules}) => {
  const [ArcGISMap, MapView] = modules;

  const layer = new DeckLayer({
    'deck.layers': [
      new ScatterplotLayer({
        data: [
          {position: [0.119, 52.205]}
        getPosition: d => d.position,
        getColor: [255, 0, 0],
        radiusMinPixels: 20

  const mapView = new MapView({
    container: "viewDiv",
    map: new ArcGISMap({
      basemap: "dark-gray-vector",
      layers: [layer]
    center: [0.119, 52.205],
    zoom: 5

Supported Features and Limitations

Supported features:

  • Layers
  • Effects
  • Attribute transitions
  • Auto-highlighting
  • onHover and onClick callbacks

Not supported features:

  • Multiple views
  • Controller
  • React integration