Bing layer (bingLayer)

Indicates if working with Microsoft Bing layers. There are three layer types associated with Bing Layers: BingMapsAerial, BingMapsRoad, and BingMapsHybrid.

Properties

Property Details
id A unique identifying string for the layer.
layerType String indicating the layer type.
Must be one of the following values:
  • BingMapsAerial
  • BingMapsRoad
  • BingMapsHybrid
maxScale Integer property used to determine the maximum scale at which the layer is displayed.
minScale Integer property used to determine the minimum scale at which the layer is displayed.
opacity The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.
portalUrl A string value representing the URL to the Portal/organization Self resource. Calls should be made to this property to retrieve the Bing key. If the key is not made accessible to the public or if canShareBingPublic is false, any web maps using Bing layers will not work.
title A user-friendly string title for the layer that can be used in a table of contents.
type Deprecated, use layerType instead.
visibility Boolean property determining whether the layer is initially visible in the web map.

Example

Live sample web map showing the Bing layer as baseMapLayer.

{
  "baseMapLayers": [
    {
      "title": "Bing Maps Road",
      "type": "BingMapsRoad",
      "layerType": "BingMapsRoad",
      "portalUrl": "https://webmaps.maps.arcgis.com/sharing/rest/portals/lVkj5PBOw7tRmIPU",
      "opacity": 1,
      "visibility": true,
      "id": "BingMapsRoad"
    }
  ]
}

Feedback on this topic?