Hide Table of Contents
esri
esri/arcgis
esri/dijit
esri/dijit/analysis
esri/dijit/geoenrichment
esri/dijit/geoenrichment/ReportPlayer
esri/geometry
esri/layers
esri/opsdashboard
esri/renderers
esri/symbols
esri/tasks
esri/tasks/datareviewer
esri/tasks/geoenrichment
esri/tasks/locationproviders
| Name | Summary |
|---|---|
| new esri.dijit.geoenrichment.ReportPlayer.ReportPlayer(params, srcNode?) | Creates a new ReportPlayer dijit using the given DOM node. |
| Name | Type | Summary |
|---|---|---|
| dataProvider | DataProviderGE | Data Provider for the ReportPlayer which allows you to specify which export options are available when running the report. |
| isSlidesView | Boolean | Indicate whether to display the report in slide view or full screen, defaults to false which is full view. |
| resizeModes | PlayerResizeModes | Specifies the resize mode of the ReportPlayer. |
| theme | PlayerThemes | Specifies the theme of the ReportPlayer. |
| Name | Return type | Summary |
|---|---|---|
| playReport(dataProviderParams, playParams?) | Deferred | Generates the report for the supplied parameters. |
<> params |
Required | Various parameters that can be used to configure the ReportPlayer. All properties can be passed into the constructor as options. |
<> srcNode |
Optional | Reference or id of the HTML element where the widget should be rendered. |
params properties: <> dataProvider |
Optional | Specifies which export options are available for the report. |
<> isSlidesView |
Optional | Indicate whether to display the report in slide view or full screen, defaults to false which is full view. |
<> resizeMode |
Optional | Specifies the resize mode of the ReportPlayer. It defaults to AUTO. |
<> theme |
Optional | Specifies the theme of the ReportPlayer. It defaults to DARK. |
DataProviderGE> dataProviderBoolean> isSlidesViewfalseDeferred<> dataProviderParams |
Required | See the object specifications table below for the structure of the dataProviderParams object. |
<> playParams |
Optional | See the object specifications table below for the structure of the playParams object. |
analysisJson><> address |
Optional | Address of location, can be displayed in the generated infographic. |
<> description |
Optional | A description for the location, can be displayed in the generated infographic. |
<> feature |
Required | Feature of the generated infographic. Geometry is required. Attributes, symbol, and infoTemplate are optional. See sample below:
var analysisJson = [{
"name": "Area name",
"shortName": "Area name (short)",
"description": "Area description",
"address": "Area address",
"latitude": "Area Lat.",
"longitude": "Area Long.",
"feature": {
"geometry": {
"rings": [
[
[-8238372.646123883, 4971599.356069453],
[-8236117.753789412, 4970600.8973874515],
[-8235730.791333708, 4968556.206880769],
[-8240211.912117044, 4969607.216019718],
[-8238372.646123883, 4971599.356069453]
]
],
"spatialReference": {
"wkid": 102100
}
},
"attributes": {
"ATTR_1": 1000.12345,
"ATTR_2": 2000.12345,
"ATTR_3": 3000.12345
},
"symbol": {
"color": [
64,
128,
194,
50
],
"outline": {
"color": [
64,
128,
194,
255
],
"width": 1.5,
"type": "esriSLS",
"style": "esriSLSSolid"
},
"type": "esriSFS",
"style": "esriSFSSolid"
},
"infoTemplate": {
"fieldInfos": [
{
"fieldName": "ATTR_1",
"label": "Attribute 1",
"format": { places: 1 },
"visible": true
},
{
"fieldName": "ATTR_2",
"label": "Attribute 2",
"format": { places: 2 },
"visible": true
},
{
"fieldName": "ATTR_3",
"label": "Attribute 3",
"format": { places: 3 },
"visible": true
}
]
}
}
}];
|
<> latitude |
Optional | Latitude of location, can be displayed in the generated infographic. |
<> longitude |
Optional | Longitude of location, can be displayed in the generated infographic. |
<> name |
Optional | The name of the location, this is often displayed in the generated infographic. |
<> shortName |
Optional | A short name for the location, can be displayed in the generated infographic. |
dataProviderParams><> analysisAreas |
Required | An array of analysisJson objects which detail the location that the infographic will run on. See below for additional information regarding the analysisJson object. |
<> countryID |
Required | Two-digit country code. For example: "US". |
<> geoenrichmentUrl |
Optional | The URL of the Geoenrichment service. If not specified, it will be discovered via the portal helper services. |
<> portalUrl |
Required | URL of the ArcGIS Portal instance. For example, "https://www.arcgis.com". |
<> reportID |
Required | The ID of the report. |
playParams><> analysisJson |
Required | Details the location that an infographic is run on. See the object specifications table below for the structure of the analysisJson object. |
<> disableAnimation |
Optional | Indicates whether to disable the animation in the generated report. Defaults to false. |
<> reportID |
Required | The ItemID of the Report Template to run. Can also use one of the following strings to run an Esri infographic in the United States.
|
<> waitUntilAllContentIsReady |
Optional | Set this value to true if required to know when the report has finished loading all of its content. The default value is false. |