Configure application

The Event 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.

Event Locator

To configure the Event Locator application, complete the following steps:

  1. Using Windows Explorer, browse to the <your directory>\Application\EventLocator\js folder and open the config.js file in Microsoft Notepad or another text editor.
  2. Enter the web map ID for your Event Locator map.
        
            WebMapId: "77e031718104430a924ff3d8601e4dac",
                
            
  3. Enter the name of your Community Events web map layer and index number of your CommunityEvents service in the Event Search Settings.
        
           EventSearchSettings: [{
           Enable: true,
           UnifiedSearch: "true",
           Title: "CommunityEvents",
           QueryLayerId: "0",
           SearchDisplayTitle: "Events",
           SearchDisplayFields: "${EVENTNM}",
           SearchDisplaySubFields: "${EVENTSTART},${FULLADDR}",
           SearchExpressionForDate: "(EVENTEND >= DATE ${0} AND EVENTEND <= DATE ${1}) OR (EVENTSTART <= DATE ${0} AND EVENTEND >= DATE ${1}) OR (EVENTSTART >= DATE ${0} AND EVENTSTART <= DATE ${1})",
           SearchExpression: "UPPER(EVENTTYPE) LIKE UPPER('${0}%')",
           SortingKeyField: "${EVENTSTART}",
           AddToCalendarSettings: [{
                IcsFileName: "${EVENTNM}",
                StartDate: "${EVENTSTART}",
                EndDate: "${EVENTEND}",
                Location: "${FULLADDR},${PSTLCITY}",
                Summary: "${EVENTNM}",
                Description: "${EVENTDESC}",
                Organizer: "${SPONSOR}"
           }]
                
            
  4. Set the value of the GetDirections parameter in the Driving Directions Settings to true or false.
    true Application draws routes and provide directions.
    false Application will not draw routes or provide directions.
        
            DrivingDirectionSettings: {
                GetDirections: true,
                RouteServiceURL: "http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",
                RouteColor: "0,0,225",
                RouteWidth: 6,
                Transparency: "0.5",
                RouteUnit: "MILES"
            },
                
            
  5. Save the file and exit.
Top