From b1a2500f73f03cba5455116840c5d78b042a9e0b Mon Sep 17 00:00:00 2001 From: Matt Driscoll Date: Thu, 19 Feb 2015 15:14:00 -0800 Subject: [PATCH] no message --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 034f43d..1bef8eb 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,21 @@ The PMG template is also easily configurable. A complete list of features and en 3. Access the .html page. 4. See the readme.html page for configuration options. +[New to Github? Get started here.](https://github.com/) + +## Deploying + +1. To deploy this application, download the template from Portal/ArcGIS Online and unzip it. +2. Copy the unzipped folder containing the web app template files, such as index.html, to your web server. You can rename the folder to change the URL through which users will access the application. By default the URL to the app will be `http:////index.html` +3. Change the sharing host, found in options.js inside the config folder for the application, to the sharing URL for ArcGIS Online or Portal. For ArcGIS Online users, keep the default value of www.arcgis.com or specify the name of your organization. + - ArcGIS Online Example: `"sharingurl": location.protocol + "//" + “.maps.arcgis.com` + - Portal Example where `arcgis` is the name of the Web Adaptor: `"sharingurl": location.protocol + "//" + "webadaptor.domain.com/arcgis"` +4. If you are using Portal or a local install of the ArcGIS API for JavaScript, change all references to the ArcGIS API for JavaScript in index.html to refer to your local copy of the API. Search for the references containing `"//js.arcgis.com/3.13"` and replace this portion of the reference with the url to your local install. + - For example: `"//webadaptor.domain.com/arcgis/jsapi/jsapi"` where `arcgis` is the name of your Web Adaptor. +5. Copy a map or group ID from Portal/ArcGIS Online and replace the default web map ID in the application’s index.html page. You can now run the application on your web server or customize the application further. + +> **Note:** If your application edits features in a feature service, contains secure services or web maps that aren't shared publicly, or generate requests that exceed 200 characters, you may need to set up and use a proxy page. Common situations where you may exceed the URL length are using complex polygons as input to a task or specifying a spatial reference using well-known text (WKT). For details on installing and configuring a proxy page see [Using the proxy](https://developers.arcgis.com/javascript/jshelp/ags_proxy.html). If you do not have an Internet connection, you will need to access and deploy the ArcGIS API for JavaScript documentation from [developers.arcgis.com](https://developers.arcgis.com/). + [New to Github? Get started here.](https://github.com/) ## Requirements