Skip To Content

Configuring disconnected deployment for Product on Demand

Disponible avec une licence Maritime Charting.

You can deploy Product on Demand (PoD) 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.

Registering your PoD app in portal

Use the following steps to add data from your portal:

  1. Register your web app and get the App ID.
  2. Browse to C:\inetpub\wwwroot\pod\js, if you are using Internet Information Server (IIS).
  3. For all Microsoft Windows operating systems, choose one of the following:

    • Windows 7 and earlier—Choose Windows Explorer.
    • Windows 8 and later—Choose File Explorer.

  4. Open the podconfig.js file and update the appId with the information you created in step 2.
  5. Cliquez sur Enregistrer.

Updating JavaScript files

The following steps allow you to register your web app in your portal:

  1. Browse to the POD folder in your web root folder. For example, C:\inetpub\wwwroot\POD if you are deploying your web app using Internet Information Server (IIS).
  2. In the widgets\AddData folder, open Widget.js.
  3. Update the portalUrl variable to https://portalserver.domain.com/arcgis.
  4. Cliquez sur Enregistrer.
  5. In the widgets\LayerList folder, open Widget.js.
  6. In the appConfig section, update the portalUrl to https://portalserver.domain.com/arcgis.
  7. Cliquez sur Enregistrer.
  8. In the js folder, open SignInButton.js.
  9. Uncomment // portalUrl: "https://portalserver.domain.com/arcgis", and update the portalUrl.
  10. Cliquez sur Enregistrer.

Setting ArcGIS API for JavaScript

  1. Sign in to ArcGIS for Developers using your credentials.
  2. Browse to and download ArcGIS API for JavaScript 3.28.

    The extracted library is located in your local machine at <downloaded location>\arcgis_js_v328_api\arcgis_js_api\library.

  3. Create an arcgis_js_api folder at C:\inetpub\wwwroot\pod\js if you are using IIS to deploy your web app.
  4. Copy the entire extracted library folder to C:\inetpub\wwwroot\pod\js\arcgis_js_api\.
  5. Open the init.js file (at C:\inetpub\wwwroot\pod\js\arcgis_js_api\library\3.28\3.28\) in a text editor.
  6. Browse through the .js file and replace https://[HOSTNAME_AND_PATH_TO_JSAPI]dojo with https://gisserver.domain.com/pod/js/arcgis_js_api/library/3.28/3.28/dojo.
  7. Click Save and close the init.js file.
  8. Open the dojo.js file (at C:\inetpub\wwwroot\pod\js\arcgis_js_api\library\3.28\3.28\dojo\) in a text editor.
  9. Browse through the .js file and replace https://[HOSTNAME_AND_PATH_TO_JSAPI]dojo with https://gisserver.domain.com/pod/js/arcgis_js_api/library/3.28/3.28/dojo.
  10. Click Save and close the dojo.js file.
  11. Browse to the index.html file at C:\inetpub\wwwroot\pod. Change the following style sheet paths:
    • Browse through the index.html file and replace //js.arcgis.com/3.28/dojo/resources/dojo.css with js/arcgis_js_api/library/3.28/3.28/dojo/resources/dojo.css.
    • Browse through the index.html file and replace //js.arcgis.com/3.28/dijit/themes/claro/claro.css with js/arcgis_js_api/library/3.28/3.28/dijit/themes/claro/claro.css.
    • Browse through the index.html file and replace https://js.arcgis.com/3.28/esri/css/esri.css with js/arcgis_js_api/library/3.28/3.28/esri/css/esri.css.
  12. Change the ArcGIS API for JavaScript path.

    Browse through the index.html file and replace http://js.arcgis.com/3.28/ with js/arcgis_js_api/library/3.28/3.28/init.js.

  13. Click Save and close the index.html file.

Setting Bootstrap

  1. Download Bootstrap 3.1.1.

    The bootstrap.js and bootstrap.min.js files are in download path\bootstrap-3.1.1\bootstrap-3.1.1\dist\js on your local machine upon extraction.

  2. Create a bootstrap folder at C:\inetpub\wwwroot\pod\js.
  3. Copy the bootstrap.js and bootstrap.min.js files to the bootstrap folder you created.
  4. Browse to the index.html file at C:\inetpub\wwwroot\pod.
  5. Change the path for bootstrap from //netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js to js/bootstrap/bootstrap.min.js.
  6. Click Save and close the index.html file.

Setting jQuery

  1. Create a jQuery folder at C:\inetpub\wwwroot\pod\js.
  2. Download and save the jquery-3.1.0.min files.
  3. Move the extracted files to the jQuery folder you created.
  4. Browse to the index.html file at C:\inetpub\wwwroot\pod.
  5. Change the jquery-3.1.0.min file path from https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js to js/jQuery/jquery-3.1.0.min.js.
  6. Click Save and close the index.html file.

Updating basemaps

For more information on creating a map service and publishing it to the server, see FAQ: Can basemaps be used without an internet connection? in the support site.

Once the URL is generated, you will need to set basemap to be the URL in the podconfig.js and podconfig_i18n.js files at C:\inetpub\wwwroot\pod\js\.

basemap: https://gisserver.domain.com/arcgis/rest/services/yourBaseMap/MapServer,
Remarque :

While publishing a Basemap, choose the Using tiles from a cache option under Caching tab to draw a map service.

Updating a geometry service

Use geometryServiceURL to update to a local geometry service installed with ArcGIS Server, for example, https://[hostname].[domain]/arcgis/rest/services/Utilities/Geometry/GeometryServer.

  1. Sign in as a server manager by launching https://gisserver.domain.com/arcgis/manager.
  2. Browse to Services > Site(root).
  3. Click Utilities.
  4. Start Geometry Service.
  5. Browse through the podconfig.js and podconfig_i18n.js files at C:\inetpub\wwwroot\pod\js\.
  6. Replace the geometryServiceUrl from https://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer with https://gisserver.domain.com/acgis/rest/services/Utilities/Geometry/GeometryServer.
  7. Click Save and close the podconfig.js and podconfig_i18n.js files.

Updating a locator service

The default locator service is configured to use ArcGIS Online and is not available for disconnected deployments. You'll need to provide your own locator services in a disconnected deployment.

  1. Browse to the podconfig.js and podconfig_i18n.js files at C:\inetpub\wwwroot\pod\js\.
  2. Replace the geometryServiceUrl from https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer with the custom locator service URL.
  3. Click Save and close the podconfig.js and podconfig_i18n.js files.