I modified the JSON that you posted at couple of places:1. updated the map extent so that it displays San Francisco and neighboring areas.2. Updated the operational layer URL to point to a public server.Notice that "layers" array contains one layer object that is pointing to the first layer of the map service (layer id 0). In this layer object you pass in a definition expression. {
"mapOptions": {
"extent": {
"xmin": -126,
"ymin": 27,
"xmax": -108,
"ymax": 44,
"spatialReference": {
"wkid": 4326,
"latestWkid": 4326
}
},
"rotation": 0,
"spatialReference": {
"wkid": 4326
}
},
"operationalLayers": [
{
"id": null,
"url": "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/MapServer",
"title": "FGC_Edit",
"layers": [
{
"id": 0,
"layerDefinition": {
"definitionExpression": "req_type like 'Graffiti%'"
}
}
]
}
],
"baseMap": {
"title": "My Base Map",
"baseMapLayers": [
{
"url": "http://services.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer"
}
]
},
"exportOptions": {
"dpi": 96,
"outputSize": [
500,
500
]
},
"layoutOptions": {
"titleText": ""
}
}