POST
|
Your formatting is slightly off. For a map service you do not have to set the service URL for each individual layer within a map service. Here is a sample. I have popups for the first 2 layers (0,1) and then last layer(2) has no popups defined. {
"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"
} You may also want to set a basemap layer within your JSON. If you want to use one of those layers within your map service as a BM you can publish it out as a separate service and then place it within the BM JSON section. Hope this helps. Russ
... View more
11-07-2011
10:49 AM
|
0
|
0
|
974
|
POST
|
Your formatting is slightly off. For a map service you do not have to set the service URL for each individual layer within a map service. Here is a sample. I have popups for the first 2 layers (0,1) and then last layer(2) has no popups defined. { "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" } You may also want to set a basemap layer within your JSON. If you want to use one of those layers within your map service as a BM you can publish it out as a separate service and then place it within the BM JSON section. Hope this helps. Russ
... View more
11-07-2011
10:48 AM
|
0
|
0
|
974
|
POST
|
Can you share the web map temporarily or can you show the structure of the URL you are using? Thanks Russ
... View more
11-07-2011
08:44 AM
|
0
|
0
|
476
|
POST
|
We think the issue could be caused by two things 1. The arcgismobile.txt file fails to load. This occurs when there is a problem with the network connection and the app cannot download the file. 2. Could be an issue with a secured service Just a couple of questions -Are you using a basemap that has secured service -what type of security certificate is the site using(if any) -Are you getting a server trust alert and hitting cancel? Thanks Russ
... View more
11-03-2011
10:13 AM
|
0
|
0
|
519
|
POST
|
Have you shut the app down completely and seen this error re-appear?
... View more
11-02-2011
07:07 PM
|
0
|
0
|
519
|
POST
|
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
... View more
11-02-2011
03:30 PM
|
0
|
0
|
974
|
POST
|
Correct. You would want to use feature services for editing/collecting scenarios. Cheers Russ
... View more
11-02-2011
08:27 AM
|
0
|
0
|
1096
|
POST
|
Not a problem. A work around to hosting up copyrighted data could be to create an empty feature class that mirrors the feature classes you are hosting up but have the copyright issues. This way you mirror the schemas and use the empty feature class in the webmap. Once you have extracted the JSON you can do a "find/replace" in a text file on the "empty feature class" rest end points with your data filled rest points. This way no actual company/copyrighted data is hosted up onto online..but you will have to have the schema for these features exactly matched. This still isn't the best solution but could be a possible solution for you and would reduce possible JSON errors and maybe time creating these maps. Cheers Russ
... View more
10-24-2011
04:01 PM
|
0
|
0
|
974
|
POST
|
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
... View more
10-24-2011
01:00 PM
|
0
|
0
|
974
|
POST
|
Yes correct you could use the API to create your app.. here is a link to the API resource: http://resources.arcgis.com/content/arcgis-iphone/api
... View more
10-13-2011
06:16 PM
|
0
|
0
|
223
|
POST
|
What type of server are you working with? is it ArcGIS Server? The mobile content server comes when you install ArcGIS Server 10. This install includes an on-premise �??mobile content server�?� that is a repository for the maps you can open on your smartphone device. These maps will have to be developed in JSON which is the format the webmaps are written in. This doc is slightly outdated but it can help you get your maps onto your mobile content server if you have one. http://help.arcgis.com/en/arcgismobile/10.0/apis/iphone/AppGuide/Maps.pdf None of the maps you have already created will work on the app. For maps to work in the app they have to be coming from ArcGIS Online or your mobile content server. On online you can restrict the users down to a group of people you want to use your maps or you can have them opened to the public. Also Online allows you to use token secured services if you want to further secure your maps beyond a group permission level. This link will provide you all the information about ArcGIS.com: http://help.arcgis.com/en/arcgisonline/help/index.html#/What_is_ArcGIS_com/010q0000000t000000/ Here is a sample map for you to check out. Tapping on the features will produce a popup of information. This can be accessed by arcgis online and the app. http://www.arcgis.com/home/webmap/viewer.html?webmap=14579fcbb6074f2b83ffbedfdf07f0a8 Cheers Russ
... View more
10-13-2011
03:49 PM
|
0
|
0
|
1088
|
POST
|
The app currently consumes map services, feature services, imagery services and feature collections(map notes, shapefiles, csv and gpx). The map has to be coming from ArcGIS Online or from your mobile content server(ArcGIS Server 10). Also the app currently does not have any routing or navigation capabilities and the limitation of navigation from the safari browser is probably due to the mobile browser and I am unsure how to work around that. Feel free to post any further questions you have about the app here. Cheers Russ
... View more
10-12-2011
08:11 PM
|
0
|
0
|
1088
|
POST
|
The app currently requires you to use map services and feature services within a webmap. These services are published by ArcGIS Server. Map services can be queryed while feature services allow you to collect and edit data. Also you can now import shapefiles/csv/gpx files into arcgis.com/explorer.arcgis.com but you are limited by the size of the files being imported into the webmap. These features are only viewable within the app so no edits can be made to them by the app. Also there is currently no way to export those layers out of the webmap. Here are some videos that will help you walkthrough getting these maps online. http://help.arcgis.com/en/arcgisonline/help/index.html#/Videos/010q00000003000000/ Once the webmap is saved to your Global Account you can login with that same account and view it under "my content" within the app. You can also share it among other users with global accounts by using groups to keep the map private to the rest of the online community but still allowing some permitted users to access the map. Hope this helps. Russ
... View more
10-12-2011
12:28 PM
|
0
|
0
|
1088
|
POST
|
We are working on an updated version(1.4 webmap) and I will post a link to the updated doc on the this thread. There is a good forum topic within iOS about definining popups for your layers within your JSON. Also if you have any further questions feel free to post them on this thread directly or create a new one and I will try to answer them quickly for you. Cheers Russ
... View more
10-06-2011
02:22 PM
|
0
|
0
|
516
|
POST
|
here you go, I included just the query tasks. This one has multiple query samples included. 1. is using a coded domain 2. is using a coded domain with a prompt value 3. is similar to the first one. 4. Uses a prompt with edit hint "tasks": {"queryTasks": [ { "displayField": "description", "name": "Facility Query", "parameters": [{ "defaultValue": "6", "field": "facility", "helpTip": "Dining", "operator": "=", "prompt": "Facility Type" }], "url": "http://sampleserver5.arcgisonline.com/ArcGIS/rest/services/LocalGovernment/Recreation/FeatureServer/0", "visibleFields": [ "facility", "description", "quality", "observed" ], "whereClause": "{0}" }, { "displayField": "description", "name": "PROMPT", "parameters": [{ "defaultValue": "3", "field": "facility", "operator": "=", "prompt": "enter a value" }], "url": "http://sampleserver5.arcgisonline.com/ArcGIS/rest/services/LocalGovernment/Recreation/FeatureServer/0", "visibleFields": [ "facility", "description", "quality", "observed" ], "whereClause": "{0}" }, { "displayField": "facility", "name": "Basic Query", "parameters": [], "url": "http://sampleserver5.arcgisonline.com/ArcGIS/rest/services/LocalGovernment/Recreation/FeatureServer/0", "visibleFields": [ "facility", "description", "quality", "observed" ], "whereClause": "facility = 1" }, { "displayField": "facility", "name": "Prompt+Edit Hint", "parameters": [{ "defaultValue": "2", "field": "facility", "helpTip": "Camping", "operator": "=", "prompt": "Enter Facility Type" }], "url": "http://sampleserver5.arcgisonline.com/ArcGIS/rest/services/LocalGovernment/Recreation/FeatureServer/0", "visibleFields": [ "facility", "description", "quality", "observed" ], "whereClause": "{0}" } ]}, "version": "1.3" }
... View more
10-05-2011
09:44 AM
|
0
|
0
|
516
|
Title | Kudos | Posted |
---|---|---|
1 | a week ago | |
1 | 2 weeks ago | |
1 | 08-28-2024 07:53 AM | |
1 | 4 weeks ago | |
1 | 4 weeks ago |
Online Status |
Offline
|
Date Last Visited |
40m ago
|