Intro to MapImageLayer

This sample shows how to add an instance of MapImageLayer to a Map in a SceneView. The MapImageLayer used in this map has two sublayers - one showing lots with pool permits and one depicting lots that don't have pool permits.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// This layer has two sublayers - one showing lots with pool permits
// and one depicting lots that don't have pool permits
const permitsLayer = new MapImageLayer({
  portalItem: {
    id: "d7892b3c13b44391992ecd42bfa92d01"
  }
});

/*****************************************************************
 * Add the layer to a map
 *****************************************************************/
const map = new Map({
  basemap: "dark-gray-vector",
  layers: [permitsLayer]
});

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

The developer dashboard has moved

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close