Skip To Content
ArcGIS Developer
Dashboard

Map configuration

The following table describes the attributes for map configuration.

AttributeDescription

3D

Boolean. Identifies whether the map is 3D or 2D. If both 3D and 2D are true, it’s an app with the ability to switch between 3D and 2D (not supported in this version). The default is false.

2D

Boolean. Identifies whether the map is 2D or 3D. If both 2D and 3D are true, it’s an app with the ability to switch between 2D and 3D (not supported in this version). The default is true.

itemId

String. Identifies webmapID or websceneID.

mapOptions

Object. This property is the same as the map API.

position

Object. This property is the same as the widget position.

portalUrl

String. The URL where the web map is hosted. If not set, the app's portalUrl property is used.

appProxy

Object. Contains the proxy information for the premium map service layer. It has the following two properties:

  • mapItemId—String. The web map ID.
  • proxyItems—Array. The array of proxy items for map services. Each proxy item contains the following parameters:
    • sourceUrl—String. The URL of the premium map service layer.
    • proxyUrl—String. The proxy URL for the source URL.
    • title—String. The label for the source URL.
    • consumeCredits—Boolean. Identifies whether this service consumes credits.
    • proxyId—String. The proxy ID registered in ArcGIS Online.
    • useProxy—Boolean. Determines whether to use the proxy URL to replace the source URL.

mapRefreshInterval

Optional. Indicates how often the map refreshes.

  • If the useWebMapRefreshInterval property is true—Honors the individual interval of each layer and the Minutes property will be ignored.
  • If the useWebMapRefreshInterval property is false—Uses a single interval specified by Minutes for all layers.

The default value of the useWebMapRefreshInterval property is true.

"mapRefreshInterval": {
      "useWebMapRefreshInterval": false,
      "minutes": 0.5
}

Example

"map": {
    
    "3D": false,
    "2D": true,
    "portalUrl": "",
    "itemId": "",
    "position": {
      "left": 0,
      "top": 0,
      "right": 0,
      "bottom": 30,
      "width": 100,
      "height": 100
    },

    "mapOptions": {
      "extent": {
        "xmin": 20, "xmax": 30, "ymin": 40, "ymax": 50, "spatialReference": {"wkid": 4326}
      },
      "center": "",
      "level": 3
    },

				"appProxy": {
      "mapItemId": "6ba5d2b530a84d9d87e217aff44f3cbf",
      "proxyItems": [
        {
          "sourceUrl": "http://demographics1.arcgis.com/arcgis/rest/services/USA_Demographics_and_Boundaries/MapServer",
           "title": "USA_Demographics_and_Boundaries",
          "consumeCredits": true,
          "useProxy": true,
          "proxyUrl": "http://utility.arcgis.com/usrsvcs/appservices/RPSyFj4IiBPxqMbd/rest/services/USA_Demographics_and_Boundaries/MapServer",
          "proxyId": "RPSyFj4IiBPxqMbd"
        }
      ]
    }
  },
In this topic
  1. Example