[
{
"id": "<webmapOperationalLayerId1>",
"url": "<url1>,
"token": "<tokenString1>,
"title": "<title1>",
"opacity": <opacity1>,
"visibility": <true | false>,
"minScale": <minScale1>,
"maxScale": <maxScale1>,
"visibleLayers": [
<layerId1>, <layerId2>
],
"layers": [
{
"id": <sub layer id 1>,
"layerDefinition": {
"definitionExpression": "<definition expression>",
"layerTimeOptions": {
"useTime": <true | false>,
"timeDataCumulative": <true | false>,
"timeOffset": <time offset value>,
"timeOffsetUnits": <time offset units>
},
"drawingInfo": {
"renderer": <renderer>,
"transparency": <transparency>,
"scaleSymbols": <true | false >,
"showLabels": <true | false >,
"labelingInfo": <labeling info>
},
"source": <layerSource>
}
}
],
"gdbVersion": "<geodatabase version name>"
},
{
"id": "<webmapOperationalLayerId1>",
"url": "<url1>,
"token": "<tokenString1>,
"title": "<title1>",
"opacity": <opacity1>,
"visibility": <true | false>,
"minScale": <minScale1>,
"maxScale": <maxScale1>,
"timeInfo": {
"trackIdField": "<trackId field name>"
},
"layerDefinition": {
"drawingInfo": {
"renderer": <renderer>,
"latestObservationRenderer": <renderer>,
"trackLinesRenderer": <renderer>,
"observationAger": {
"colorRange": [<start color>, <end color>],
"alphaRange": [<start alpha>, <end alpha>],
"sizeRange": [<start size>, <end size>]
}
"observationAger": {
"timeUnits": "<esriTimeUnits>",
"agerClassBreakInfos": [
{
"newestAge": <age1>,
"color": <color1>,
"alpha": <alpha1>,
"size": <size1>
},
{
"newestAge": <age2>,
"color": <color2>,
"alpha": <alpha2>,
"size": <size2>
}
]
}
},
"definitionExpression": "<definitionExpression>",
"objectIds": [
<OID1>,
<OID2>
],
"geometry": <geometry>,
"geometryType": "<esriGeometryPoint | esriGeometryMultipoint |
esriGeometryPolyline | esriGeometryPolygon |
esriGeometryEnvelope>",
"spatialRel": "<esriSpatialRelIntersects | esriSpatialRelContains |
esriSpatialRelCrosses | esriSpatialRelEnvelopeIntersects |
esriSpatialRelIndexIntersects | esriSpatialRelOverlaps |
esriSpatialRelTouches | esriSpatialRelWithin |
esriSpatialRelRelation>",
"relationParam": "<relationParam>",
"gdbVersion": "<geodatabase version name>",
"source": <layerSource>
},
"selectionObjectIds": [
<OID1>,
<OID2>
],
"selectionSymbol": <symbol>
},
{
"id": "<webmapOperationalLayer_imageService>",
"url": "<url1>,
"token": "<tokenString1>,
"title": "<title1>",
"opacity": <opacity1>,
"visibility": <true | false>,
"minScale": <minScale1>,
"maxScale": <maxScale1>,
"noData": <no data value>,
"format": "<jpgpng | png | png8 | png24 | jpg | bmp | gif | tiff>",
"interpolation": "<RSP_BilinearInterpolation | RSP_CubicConvolution |
RSP_Majority | RSP_NearestNeighbor>",
"compressionQuality": <compression quality>,
"bandIds": [
<bandId1>,
<bandId2>
],
"mosaicRule": "<mosaic rule 1>",
"renderingRule": "<rendering rule 1>"
},
{
"id": "<webmapOperationalLayer_wms>",
"url": "<url1>,
"token": "<tokenString1>,
"title": "<title1>",
"opacity": <opacity1>,
"visibility": <true | false>,
"minScale": <minScale1>,
"maxScale": <maxScale1>,
"type": "wms",
"version": "<wms version>",
"format": "<jpg | png8 | png24 | png32>",
"transparentBackground": <true | false>,
"layers": [
{"name": "<layer 1>"},
{"name": "<layer 2>"}
],
"visibleLayers": [
"<layer 1>",
"<layer 2>"
],
"styles": [
"<style 1>",
"<style 2>"
]
},
{
"id": "<webmapOperationalLayerId1>",
"url": "<url1>,
"token": "<tokenString1>,
"title": "<title1>",
"opacity": <opacity1>,
"visibility": <true | false>,
"minScale": <minScale1>,
"maxScale": <maxScale1>,
"type": "image",
"extent": {
"xmin": <xmin>,
"ymin": <ymin>,
"xmax": <xmax>,
"ymax": <ymax>,
"spatialReference": <spatialReference>
},
"url": <image url>,
"imageData": "<base64 encoded image data>"
},
{
"id": "<webmapOperationalLayerId1>",
"title": "<title1>",
"featureCollection": {
"layers": [
{
"layerDefinition": {
"name": "<layer name>",
"geometryType": "<esriGeometryPoint | esriGeometryMultipoint |
esriGeometryPolyline | esriGeometryPolygon |
esriGeometryEnvelope>",
"drawingInfo": {
"renderer": <renderer>
},
"objectIdField": "<objectId field name>",
"fields": [
{
"name": "<field name1>",
"type": "<esriFieldType>",
"alias": "<field alias name1>"
},
{
"name": "<field name2>",
"type": "<esriFieldType>",
"alias": "<field alias name2>"
}
]
},
"featureSet": {
"features": [
{
"geometry": <geometry>,
"attributes": [
"<field1>": "<field name1>",
"<field2>": "<field name2>",
]
}
],
"symbol": <symbol>
}
}
]
}
},
{
"id": "<webmapOperationalLayerId1>",
"url": "<url1>,
"token": "<tokenString1>,
"title": "<title1>",
"opacity": <opacity1>,
"visibility": <true | false>,
"minScale": <minScale1>,
"maxScale": <maxScale1>
},
{
"id": "<webmapOperationalLayerId1>",
"url": "<url1>,
"token": "<tokenString1>,
"title": "<title1>",
"opacity": <opacity1>,
"visibility": <true | false>,
"minScale": <minScale1>,
"maxScale": <maxScale1>,
"type": "CSV",
"layerDefinition": {
"drawingInfo": {
"renderer": <renderer>
}
},
"locationInfo": {
"latitudeFieldName": "<latitude field name>",
"longitudeFieldName": "<longitude field name>"
}
}
]
|
[
{
"id": "mapServiceLayer1",
"url": "http://myServer/arcgis/rest/services/myService/MapServer",
"title": "ArcGIS MapService Layer",
"opacity": 1,
"visibility": true,
"minScale": 20000,
"maxScale": null,
"visibleLayers": [0,3],
"layers": [
{
"id": <sub layer id 1>,
"layerDefinition": {
"definitionExpression": "<definition expression>",
"layerTimeOptions": {LAYER TIME OPTIONS};
"drawingInfo": {
"renderer": <renderer>
},
"source": <layerSource>
}
}
]
},
{
"url": "http://servicesbeta.esri.com/ArcGIS/rest/services/Hydrography/Watershed173811/FeatureServer/1",
"title": "Watershed",
"opacity": 1,
"layerDefinition":
{
"drawingInfo":
{
"renderer": <renderer>
},
"definitionExpression": "Type = 1",
"objectIds": [
534,
434
]
},
"selectionObjectIds": [
434
],
"selectionSymbol": <symbol>
},
{
"url": "http://ais3/ArcGIS/rest/services/QB16/ImageServer",
"title": "Satellite image from 1990",
"opacity": 0.8,
"bandIds": [0,1,2]
},
{
"id": "wmsLayer1",
"url": "http://myServer/arcgis/rest/services/myService/MapServer/WMSServer",
"title": "WMS Service",
"opacity": 0.7,
"visibility": true,
"type": "wms",
"version": "1.3.0",
"format": "jpg",
"layers": [
{"name": "0"},
{"name": "3"}
],
"styles": null,
},
{
"type": "image",
"title": "heat map",
"opacity": 0.75,
"extent":
{
"xmin": -12933906.537,
"ymin": 3993856.886,
"xmax": -12933371.998,
"ymax": 3994375.189,
"spatialReference":
{
"wkid": 102100
}
},
"url": "http://myMachine/anImage.png"
},
{
"url": "http://myMachine:6080/arcgis/rest/services/Buffer/MapServer/jobs/j9aa6c36d59f44829a0daeadb2d0ff87b",
"title": "Geoprocessing Result"
},
{
"id": "Earthquakes",
"url": "http://servicesbeta.esri.com/demos/exp/data/earthquakes.csv,
"title": "Earthquakes",
"opacity": 1,
"visibility": true,
"type": "CSV",
"layerDefinition": {
"drawingInfo": {
"renderer": {
"type": "simple",
"symbol": {
"height": 15,
"type": "esriPMS",
"url": "http://static.arcgis.com/images/Symbols/Basic/RedSphere.png",
"width": 15
},
"transparency": 0
}
}
},
"locationInfo": {
"latitudeFieldName": "lat",
"longitudeFieldName": "lon"
}
}
]
|