{
"version" : "1.3",
"operationalLayers" : [
{
"url" : "http://myservername/ArcGIS/rest/services/maps/MyData/MapServer",
"visibility" : true,
"opacity" : 1,
"title" : "Layers"
}],
"baseMap" : {
"baseMapLayers" : [
{
"id" : "World_Topo_Map8225",
"opacity" : 1,
"visibility" : true,
"url" : "http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"
}],
}
}To be able to identify your features you will need to define a popupinfo for your features. One of the easiest ways to do this is to create a webmap define popups for your features and then extract the webmap JSON.
The process to extract the JSON is outlined in the help doc:
http://help.arcgis.com/en/arcgismobile/10.0/apis/iphone/AppGuide/Maps.pdf
Also popups and identifying features is also discussed in this thread
http://forums.arcgis.com/threads/36981-Identify-Feature-ESRI-ArcGIS-APP-Update
Hope this helps you out
Cheers
Russ
{
"currentVersion" : 10.03,
"serviceDescription" : "",
"mapName" : "Layers",
"description" : "",
"copyrightText" : "",
"layers" : [
{
"id" : 0,
"name" : "Gas Grid",
"parentLayerId" : -1,
"defaultVisibility" : true,
"subLayerIds" : null,
"minScale" : 0,
"maxScale" : 0
},
{
"id" : 1,
"name" : "Water Utilities Grid",
"parentLayerId" : -1,
"defaultVisibility" : false,
"subLayerIds" : null,
"minScale" : 0,
"maxScale" : 400
},
{
"id" : 2,
"name" : "Gas Dept Layers",
"parentLayerId" : -1,
"defaultVisibility" : true,
"subLayerIds" : [3, 4, 5],
"minScale" : 0,
"maxScale" : 0
},
{
"id" : 3,
"name" : "Commercial Meters",
"parentLayerId" : 2,
"defaultVisibility" : true,
"subLayerIds" : null,
"minScale" : 4800,
"maxScale" : 0
},
{
"id" : 4,
"name" : "Valves",
"parentLayerId" : 2,
"defaultVisibility" : true,
"subLayerIds" : null,
"minScale" : 4800,
"maxScale" : 0
},
{
"id" : 5,
"name" : "Mains",
"parentLayerId" : 2,
"defaultVisibility" : true,
"subLayerIds" : null,
"minScale" : 4800,
"maxScale" : 0
},
.
.
.
.
.
.
],
"tables" : [
],
"spatialReference" : {
"wkid" : 2279
},
"singleFusedMapCache" : false,
"initialExtent" : {
"xmin" : 1228236.70754998,
"ymin" : 17087997.5799992,
"xmax" : 1422523.18567219,
"ymax" : 17233052.008659,
"spatialReference" : {
"wkid" : 2279
}
},
"fullExtent" : {
"xmin" : 1228236.70754998,
"ymin" : 17087997.5799992,
"xmax" : 1422523.18567219,
"ymax" : 17233052.008659,
"spatialReference" : {
"wkid" : 2279
}
},
"units" : "esriFeet",
"supportedImageFormatTypes" : "PNG24,PNG,JPG,DIB,TIFF,EMF,PS,PDF,GIF,SVG,SVGZ,AI,BMP",
"documentInfo" : {
"Title" : "Gas Dept",
"Author" : "alicia",
"Comments" : "",
"Subject" : "",
"Category" : "",
"Keywords" : "",
"Credits" : ""
},
"capabilities" : "Map,Query,Data"
}{
"operationalLayers": [
{
"url": "http:/myserver/ArcGIS/rest/services/maps/Mobile_Gas/MapServer/0",
"id": "0",
"visibility": true,
"opacity": 1,
"mode": 1,
"title": "Gas Grid",
*declare popupInfo here*
"description": null
},
{
*repeat the process for every feature in the map*
*create popupInfo only for layers that I want users to be able to identify*
}
],
"version": "1.3"
}
Can you take a snap shot of what you are seeing in the mxd and on the iOS app? Also could you point out some key things that I should be seeing.
Cheers
Russ
{
"version":"1.3",
"operationalLayers":[
{
"url":"http:/myserver/ArcGIS/rest/services/maps/iOS_Forum_Test/MapServer/0",
"visibility": true,
"title": "Elementary School Districts",
"popupInfo": {
"title": "Elementary School District",
"fieldInfos": [
{
"fieldName": "NAME10",
"label": "",
"isEditable": false,
"tooltip": "",
"visible": true,
"stringFieldOption": "textbox"
},
{
"fieldName": "LOGRADE10",
"label": "Low Grade",
"isEditable": false,
"tooltip": "",
"visible": true,
"stringFieldOption": "textbox"
},
{
"fieldName": "HIGRADE10",
"label": "High Grade",
"isEditable": false,
"tooltip": "",
"visible": true,
"stringFieldOption": "textbox"
}
]
}
},
{
"url":"http:/myserver/ArcGIS/rest/services/maps/iOS_Forum_Test/MapServer/1",
"visibility": true,
"title" : "Congressional Districts"
},
{
"url":"http:/myserver/ArcGIS/rest/services/maps/iOS_Forum_Test/MapServer/2",
"visibility": true,
"title" : "Census Block Groups",
"popupInfo": {
"title": "Census Block Group",
"fieldInfos": [
{
"fieldName": "TRACTCE10",
"label": "TRACTCE10",
"isEditable": false,
"tooltip": "",
"visible": true,
"stringFieldOption": "textbox"
},
{
"fieldName": "BLKGRPCE10",
"label": "BLKGRPCE10",
"isEditable": false,
"tooltip": "",
"visible": true,
"stringFieldOption": "textbox"
},
{
"fieldName": "ALAND10",
"label": "ALAND10",
"isEditable": false,
"tooltip": "",
"visible": true,
"stringFieldOption": "textbox"
}
]
}
},
{
"url":"http:/myserver/ArcGIS/rest/services/maps/iOS_Forum_Test/MapServer/3",
"visibility": true,
"title" : "Texas Boundaries"
}
]
}
{
"operationalLayers": [{
"url": "http://sampleserver.arcgis.com/ArcGIS/rest/services/TestData/ElectricalView/MapServer",
"id": "ElectricalView_1904",
"visibility": true,
"visibleLayers": [
0,
1,
2
],
"opacity": 1,
"title": "ElectricalView",
"layers": [
{
"id": 0,
"popupInfo": {
"title": "Primary Circuit: {LINK_TYPE}",
"fieldInfos": [
{
"fieldName": "OBJECTID",
"label": "OBJECTID",
"isEditable": false,
"tooltip": "",
"visible": false,
"format": null,
"stringFieldOption": "textbox"
},
{
"fieldName": "CONDUCTOR_",
"label": "Conductor",
"isEditable": false,
"tooltip": "",
"visible": false,
"format": {
"places": 2,
"digitSeparator": true
},
"stringFieldOption": "textbox"
},
{
"fieldName": "Enabled",
"label": "Enabled",
"isEditable": false,
"tooltip": "",
"visible": true,
"format": {
"places": 0,
"digitSeparator": true
},
"stringFieldOption": "textbox"
},
{
"fieldName": "SHAPE",
"label": "Condition",
"isEditable": false,
"tooltip": "",
"visible": false,
"format": null,
"stringFieldOption": "textbox"
},
{
"fieldName": "SHAPE.len",
"label": "SHAPE.len",
"isEditable": false,
"tooltip": "",
"visible": false,
"format": {
"places": 2,
"digitSeparator": true
},
"stringFieldOption": "textbox"
}
],
"description": null,
"showAttachments": false,
"mediaInfos": []
}
},
{
"id": 1,
"popupInfo": {
"title": "Secondary Circuit: {LINK_TYPE}",
"fieldInfos": [
{
"fieldName": "OBJECTID",
"label": "OBJECTID",
"isEditable": false,
"tooltip": "",
"visible": false,
"format": null,
"stringFieldOption": "textbox"
},
{
"fieldName": "CONDUCTOR_",
"label": "Conductor",
"isEditable": false,
"tooltip": "",
"visible": false,
"format": {
"places": 2,
"digitSeparator": true
},
"stringFieldOption": "textbox"
},
{
"fieldName": "LINK_TYPE",
"label": "Link Type",
"isEditable": false,
"tooltip": "",
"visible": true,
"format": null,
"stringFieldOption": "textbox"
},
{
"fieldName": "INSULATION",
"label": "Insulation",
"isEditable": false,
"tooltip": "",
"visible": true,
"format": null,
"stringFieldOption": "textbox"
},
{
"fieldName": "SYMBOL",
"label": "Amps",
"isEditable": false,
"tooltip": "",
"visible": true,
"format": {
"places": 0,
"digitSeparator": true
},
"stringFieldOption": "textbox"
},
{
"fieldName": "PHASE_DESC",
"label": "Voltage",
"isEditable": false,
"tooltip": "",
"visible": true,
"format": {
"places": 0,
"digitSeparator": true
},
"stringFieldOption": "textbox"
},
{
"fieldName": "Enabled",
"label": "Enabled",
"isEditable": false,
"tooltip": "",
"visible": true,
"format": {
"places": 0,
"digitSeparator": true
},
"stringFieldOption": "textbox"
}
],
"description": null,
"showAttachments": false,
"mediaInfos": []
}
}
]
}],
"baseMap": {
"baseMapLayers": [{
"id": "World_Topo_Map_9955",
"opacity": 1,
"visibility": true,
"url": "http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"
}],
"title": "Topographic"
},
"version": "1.4"
}