Configure application

The Water Access Locator application consumes the ArcGIS Online map you authored and geographic information from your organization.

The application can also draw routes and provide directions using the ArcGIS Online World Route Service. The World Route Service is an ArcGIS Online for organizations subscription service that uses credits when routes are generated.

Learn more about credit usage when creating simple routes

To use routing for this application, an ArcGIS Online for organizations subscription is required and routing must be enabled in the configuration file. To use this application without drawing routes and providing directions, disable routing in the configuration file. When routing is disabled, the application maintains all other functionality.

Water Access Locator

To configure the Water Access Locator application, complete the following steps:

  1. Using Windows Explorer, browse to the <your directory>\Application\WaterAccessLocator\js folder and open the config.js file in Microsoft Notepad or another text editor.
  2. Enter the web map ID for your water access locator map.
            WebMapId: "daa3eeae86954f4cba87c044466c4c2f",
  3. Enter the name of your Water Access layer and index number of your Water Access service in the Activity Search Settings.
            ActivitySearchSettings: [{
            Enable: true,
            UnifiedSearch: "true",
            Title: "Water Access",
            QueryLayerId: "0",
            SearchDisplayTitle: "Activity",
            SearchDisplayFields: "${NAME}",
            SearchExpression: "UPPER(NAME) LIKE UPPER('${0}%')",
  5. Enter the name of your Comments layer and index number of your Water Access service Comment table in the Comments Settings.
            CommentsSettings: {
            Enabled: true,
            Title: "Water Access Comments",
            QueryLayerId: "1",
            ForeignKeyFieldForComment: "${id}",
            RankField: "${RANK}",
            SubmissionDateField: "${SUBMITDT}",
            CommentField: "${COMMENTS}"
  7. Set the value of the GetDirections parameter in the Driving Directions Settings to true or false.
  8. true Application draws routes and provide directions.
    false Application will not draw routes or provide directions.
            DrivingDirectionSettings: {
                GetDirections: true,
                RouteServiceURL: "",
                RouteColor: "0,0,225",
                RouteWidth: 6,
                Transparency: "0.5",
                RouteUnit: "MILES"
  9. Save the file and exit.