Configure a disconnected deployment for Custom Chart Builder
Available with Advanced license.
Available with ArcGIS Maritime license.
You can deploy Custom Chart Builder in a disconnected environment. This is necessary if there is no internet connection available or internet access is prohibited by your organization. Referenced sources must be replaced with locally available sources.
Note:
Registering the portal is required only for custom product types where the sign-in capability is needed to add data layers to your map.
Register your CCB app in portal
To add data from your portal, complete the following steps:
Register your web app and get the app ID.
Note:
You can skip this step if your web app is configured for the Fixed Product type. For the Custom Product type, this is an optional setting. If you want to activate sign-in capability and add data from your ArcGIS organization account, this step is required.
In File Explorer, browse to the
ccbconfig.jsfile.If you are using Internet Information Server (IIS) the file is located at
C:\inetpub\wwwroot\ccb\js.Open the
ccbconfig.jsfile and update theappIdvalue to the app ID of the web app you registered in step one.Click Save.
The portal URL is updated for the app.
Update JavaScript files
If you registered the web app in your portal, complete the following steps below:
Browse to the CCB folder in the web root folder.
For example, browse to
C:\inetpub\wwwroot\ccbif you are deploying the web app using Internet Information Server (IIS).In the
widgets\AddDatafolder, openWidget.js.Add the
portalUrlvalue by providing the URL of the organization to which you'll be sharing the app.For example, when providing the portal URL, if the machine hosting the web app is named
portalserverwith the domaindomain.comand the web app is namedarcgis, the URL would behttps://portalserver.domain.com/arcgis.Click Save.
In the
widgets\LayerListfolder, openWidget.js.In the
appConfigsection, update theportalUrlvalue tohttps://portalserver.domain.com/arcgis.Click Save.
In the js folder, open
SignInButton.js.Uncomment
// portalUrl: "https://portalserver.domain.com/arcgis",and update theportalUrlvalue to the URL of your organization.Click Save.
The portal URL is updated for the app.
Set ArcGIS API for JavaScript
Legacy:
ArcGIS API for JavaScript 3.31 is no longer available for download, however, it is available upon request.
To enable ArcGIS API for JavaScript in CCB, complete the following steps:
Contact your distributor or the Maritime team to receive a copy of the API.
Create an
arcgis_js_apifolder in theC:\inetpub\wwwroot\ccb\jsfolder if you are using IIS to deploy your web app.Copy the API library folder to
C:\inetpub\wwwroot\ccb\js\arcgis_js_api\.Open the
init.jsfile, located in theC:\inetpub\wwwroot\ccb\js\arcgis_js_api\library\3.31\3.31\folder, in a text editor.Browse through the
.jsfile and replacehttps://[HOSTNAME_AND_PATH_TO_JSAPI]dojowith https://gisserver.domain.com/ccb/js/arcgis_js_api/library/3.31/3.31/dojo.Click Save and close the
init.jsfile.Open the
dojo.jsfile, located in theC:\inetpub\wwwroot\ccb\js\arcgis_js_api\library\3.31\3.31\dojo\folder, in a text editor.Browse through the
.jsfile and replacehttps://[HOSTNAME_AND_PATH_TO_JSAPI]dojowith https://gisserver.domain.com/ccb/js/arcgis_js_api/library/3.31/3.31/dojo.Click Save and close the
dojo.jsfile.Open the
index.htmlfile, located in theC:\inetpub\wwwroot\ccbfolder, in a text editor and change the following style sheet paths:Browse through the
index.htmlfile and replace//js.arcgis.com/3.31/dojo/resources/dojo.csswithjs/arcgis_js_api/library/3.31/3.31/dojo/resources/dojo.css.Browse through the
index.htmlfile and replace//js.arcgis.com/3.31/dijit/themes/claro/claro.csswithjs/arcgis_js_api/library/3.31/3.31/dijit/themes/claro/claro.css.Browse through the
index.htmlfile and replacehttps://js.arcgis.com/3.31/esri/css/esri.csswithjs/arcgis_js_api/library/3.31/3.31/esri/css/esri.css.Browse through the
index.htmlfile and replacehttps://js.arcgis.com/3.31/withjs/arcgis_js_api/library/3.31/3.31/init.js.
Click Save and close the
index.htmlfile.
Set Bootstrap
To set Bootstrap, complete the following steps:
Download Bootstrap 5.3.2.
The
bootstrap.jsandbootstrap.min.jsfiles are indownload path\bootstrap-5.3.2-dist\bootstrap-5.3.2-dist\json your local machine upon extraction.Create a
bootstrapfolder atC:\inetpub\wwwroot\ccb\js.Copy the
bootstrap.jsandbootstrap.min.jsfiles to thebootstrapfolder you created.Browse to the
index.htmlfile atC:\inetpub\wwwroot\ccb.Change the path for bootstrap from
https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.min.jstojs/bootstrap/bootstrap.min.js.Click Save and close the
index.htmlfile.
Set jQuery
To set jQuery, complete the following steps:
Create a jQuery folder in the
C:\inetpub\wwwroot\ccb\jsfolder.Download and save the
jquery-3.7.1 minfile.Move the extracted files to the
jQueryfolder you created.Open the
index.htmlfile located in theC:\inetpub\wwwroot\ccbfolder in a text editor.Change the
jquery-3.7.1.minfile path fromhttps://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.jstojs/jQuery/jquery-3.7.1.min.js.Click Save and close the
index.htmlfile.
Update basemaps
You must generate an offline basemap to use for use when working without an internet connection.
Learn more about generating an offline basemap
Once the URL is generated, you must set the basemap to the URL in the ccbconfig.js and ccbconfig_i18n.js files in the C:\inetpub\wwwroot\ccb\js\ folder.
basemap: "https://gisserver.domain.com/arcgis/rest/services/yourBaseMap/MapServer",
Note:
When publishing a basemap, choose the Using tiles from a cache option on the Caching tab to draw a map service.
Use a vector tile basemap
To use a vector tile basemap, complete the following steps:
Open the
ccbconfig.jsandccbconfig_i18n.jsfiles in theC:\inetpub\wwwroot\ccb\js\folder in a text editor.Set the basemap URL to the location of the JSON file that contains the stylesheet information for rendering the vector layer.
For example:
basemap: "https://gisserver.domain.com/sharing/rest/content/items/d35487945eca4d68a602a9ad02d1feea/resources/styles/root.json"Open the
ccbMap.jsfile in theC:\inetpub\wwwroot\ccb\js\folder.Add the VectorTile type to the
EsriBaseMaps.basemapfromURLconfiguration, as follows:EsriBaseMaps.basemapFromURL = { baseMapLayers: [{ url: basemap, type: "VectorTile" }], title: "basemapFromURL" }Save and close the
ccbconfig.js,ccbconfig_i18n.js, andccbMap.jsfiles.
Update a locator service
The default locator service is configured to use ArcGIS Online and is not available for disconnected deployments. You must provide your own locator services in a disconnected deployment.
To update a locator service, complete the following steps:
Open the
ccbconfig.jsandccbconfig_i18n.jsfiles in theC:\inetpub\wwwroot\ccb\js\folder in a text editor.Change the
geocodeServiceUrlfromhttps://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServerwith the custom locator service URL.Click Save and close the
ccbconfig.jsandccbconfig_i18n.jsfiles.