You are using a browser that is no longer supported. Please use the latest version of Google Chrome, Mozilla Firefox, Apple Safari, or Microsoft Edge. For more information please see the System Requirements.

Unsupported browser

You are using a browser that is not supported. JavaScript API works on the latest versions of Google Chrome, Mozilla Firefox, Apple Safari, or Microsoft Edge. Use one of these browsers and provide your feedback through GeoNet, the Esri Community.

  • {i18n.unsupportedBrowser.chrome}
  • Firefox
  • Safari
  • undefined
Loading...

Note: Support for 3D on mobile devices may vary, view the system requirements for more information.

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.

// This layer has two sublayers - one showing lots with pool permits
// and one depicting lots that don't have pool permits
var permitsLayer = new MapImageLayer({
  portalItem: {
    id: "d7892b3c13b44391992ecd42bfa92d01"
  }
});

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

Sample search results

TitleSample
Loading...