I pull data from a web map that's transitioning to a different end point with updated information and layers. Before, I used to be able to save the whole map to JSON including all feature layers and their features using the map.toJSON() method. In the new web map, I get the map's information (basemapLayers, spatialReference, etc.) and links to the feature layers REST end points, but not the actual data in the layers.
I use this toJSON() to cache the feature layers since they're small enough and has worked great in the past because they only change every few weeks, saving queries to the server.
I'm using iOS SDK 100.6.
What can be causing this? Any server side configuration?
EDIT:
Sample of new layer information when downloading the map:
"operationalLayers" : [
{
"itemId" : "xyz",
"layerType" : "ArcGISFeatureLayer",
"visibility" : true,
"id" : "xyz",
"title" : "xyz",
"opacity" : 0.88,
"url" : "https:\/\/services.arcgis.com\/xyz\/arcgis\/rest\/services\/xyz\/FeatureServer\/0"
},
...
Sample of old layer information:
"operationalLayers" : [
{
"visibility" : true,
"id" : "xyz",
"title" : "xyz",
"layerType" : "ArcGISFeatureLayer",
"opacity" : 0.80000000000000004,
"featureCollection" : {
"layers" : [
{
"featureSet" : {
"geometryType" : "esriGeometryPolygon",
"features" : [
{
"attributes" : {
...
},
"geometry" : {
"rings" : [
[
...
]
],
"spatialReference" : {
"latestWkid" : 3857,
"wkid" : 102100
}
}
},
...
]
},
"layerDefinition" : {
"allowGeometryUpdates" : true,
"hasZ" : false,
"maxScale" : 0,
"supportedQueryFormats" : "JSON, geoJSON",
"isDataVersioned" : false,
"drawingInfo" : {
"fixedSymbols" : true,
"renderer" : {
"type" : "simple",
"symbol" : {
"outline" : {
"style" : "esriSLSSolid",
"type" : "esriSLS",
"width" : 3,
"color" : [
38,
115,
0,
255
]
},
"style" : "esriSFSSolid",
"type" : "esriSFS",
"color" : [
38,
115,
0,
88
]
}
},
"transparency" : 0,
"labelingInfo" : [
{
...
}
]
},
"extent" : {
"xmin" : -999999,
"xmax" : -999999,
"spatialReference" : {
"latestWkid" : 3857,
"wkid" : 102100
},
"ymin" : 999999,
"ymax" : 999999
},
"hasAttachments" : false,
"objectIdField" : "xyz",
"supportsRollbackOnFailureParameter" : true,
"name" : "xyz",
"geometryType" : "esriGeometryPolygon",
"supportsAdvancedQueries" : true,
"capabilities" : "Create,Delete,Query,Update,Editing",
"supportsStatistics" : true,
"type" : "Feature Layer",
"hasM" : false,
"minScale" : 3988894,
"supportsAttachmentsByUploadId" : true,
"supportsCalculate" : true,
"defaultVisibility" : true,
"supportsValidateSql" : true,
"spatialReference" : {
"latestWkid" : 3857,
"wkid" : 102100
},
"fields" : [
{
"editable" : false,
"alias" : "xyz",
"length" : 0,
"name" : "xyz",
"nullable" : false,
"type" : "esriFieldTypeOID"
},
...
],
"hasStaticData" : false,
"currentVersion" : 10.41
},
"nextObjectId" : 89,
"popupInfo" : {
"showAttachments" : false,
"title" : "xyz",
"fieldInfos" : [
{
"format" : {
"places" : 0,
"digitSeparator" : true
},
"stringFieldOption" : "textbox",
"isEditableOnLayer" : false,
"visible" : false,
"isEditable" : false,
"label" : "xyz",
"fieldName" : "xyz"
},
...
]
},
"title" : "xyz"
}
],
"showLegend" : true
}
}