Configuring the Roadway Characteristics Editor web application

Several properties can be configured on the Roadway Characteristics Editor web application. Open the config.json file in the RoadwayCharacteristicsEditor web folder on the web server to modify and deploy.

Configuring the Roadway Characteristics Editor web application is one of the steps (step 8 of 9) of the Roadway characteristics Editor deployment process. Ensure all steps prior to this are completed before continuing with the configuring the Roadway Characteristics Editor web application.

Roadway Characteristics Editor configuration properties

Properties

Description

webmap

Specifies the unique ID or URL to an authored web map hosted either on ArcGIS.com or on the web server. After authoring a web and sharing it publicly, the contents can be accessed directly by a URL.

For example, if the web map is hosted on ArcGIS.com, log in with your global account and navigate to My Content. Click on the title of the web map you are interested in to get more details. At this point, the URL is going to look like the following format: http://www.arcgis.com/home/item.html?id=<webmapID>

For example, http://www.arcgis.com/home/item.html?id=1dcf369089804329946e3b3abf385251.

Ensure that the web map is shared with everyone (public).

Copy only the ID portion of the URL as the web map ID value for the configuration.

"webmap": "1dcf369089804329946e3b3abf385251",

If the web map is hosted on a server, then the URL would look similar to the following: http://<HostName>/RoadwayCharacteristics/rwc.json, where rwc.json is the text file that contains the web map definition.

"webmap": "http://<Host Name>/ RoadwayCharacteristics/rwc.json",

geometryServiceUrl

Specifies the URL to a geometry service. By default, the config file contains a link to the geometry service hosted on ArcGIS Online, but it can be configured to refer to any geometry service hosted on any other ArcGIS server instance.

proxyUrl

Specifies the relative URL to the proxy page on the web server.

"proxyUrl": "proxy/proxy.ashx",

security

  • enabled
  • tokenServer
  • tokenExpiration

Roads and Highway Server supports secured login via the ArcGIS Server Security configuration on the published map service with linear referencing capability. This security is provided via the token service.

enabled—Specifies whether or not token authentication is enabled for the web application.

tokenServer—Specifies the host name of the server that has the ArcGIS Token service. If enabled is set to False, this property is ignored.

tokenExpiration—Specifies the duration that a token is valid in minutes.

"security": {
        "enabled": false,
        "tokenServer": "http://roadsandhighwayssample.esri.com",
        "tokenExpiration": 30
    },

attributeSets

  • title
  • groups
    • title
      • layerId
      • fields

attributeSets—Specifies the definition of attribute sets for different editing scenarios.

title—Specifies the title of the attribute set.

groups—Specifies the array of event layers and the corresponding fields participating in the attribute set.

  • title—Specifies the title of the attribute group participating in the attribute set, which will be represented as a separate tab in the Add Linear Events widget.
    • layerId—Specifies the layer Id of the event layer.
    • fields—Specifies the list of fields from the event layer that participates in the attribute set.

"attributeSets": [
        {
            "title": "Default",
            "groups": [
                {
                    "title": "Functional Class",
                    "layers": [
                        { "layerId": 1, "fields": [ "functionalclasstype", "entitystatus", "notes" ] }
                    ]
                },
                {
                    "title": "Record Attributes",
                    "layers": [
                        { "layerId": 1, "fields": [ "recordstatus", "recorddate" ] }
                    ]
                }
            ]
        }
    ],

search

Specifies the number of records per page within the results table.

"search": {
        "recordsPerPage": 10
    },

selectEventsByAttribute

  • excludeFields

Specifies the list of fields to be excluded from the Search for Events By Attribute widget. Administrators can choose to exclude certain fields that are not intended to be edited.

"selectEventsByAttribute": {
        "excludeFields": [ "shape", "shape_length", "shape_area" ]
    },

eventAttributes

  • recordsPerPage
  • errorCellColor
  • editedCellColor
  • nonEditableCellColor

recordsPerPage—Specifies the number of records per page within the results table.

errorCellColor—Specifies the background color of a cell that has failed data validation as you edit.

editedCellColor—Specifies the background color of a cell that has been edited.

nonEditableCellColor—Specifies the background color of a noneditable cell within the table.

"eventAttributes": {
        "recordsPerPage": 10,
        "errorCellColor": "#ff9999",
        "editedCellColor": "#ffff99",
        "nonEditableCellColor": "#eeeeee"
    },
RCE Results Grid

qcChecks

  • qcChecksUrl

Specifies the URL to the geoprocessing service required to run the Check Events on Route widget.

"qcChecks": {
        "gpChecksUrl": "http://roadsandhighwayssample.esri.com/arcgis/rest/services/RoadsHighways/NewYorkQC/GPServer/QC",
        "recordsPerPage": 10
    },

selectionSymbols

Specifies the style, color, width, size, and outline of all feature selections made on the map.

"selectionSymbols": {
        "line": { "style": "solid", "color": "#00ffff", "width": 3 },
        "point": { "style": "diamond", "color": "#00ffff", "size": 12, "outline": { "style": "solid", "color": "#008080", "width": 2 } },
        "fromMeasure": { "style": "cross", "color": "#008000", "size": 14, "outline": { "style": "solid", "color": "#00c000", "width": 3 } },
        "toMeasure": { "style": "x", "color": "#ff0000", "size": 12, "outline": { "style": "solid", "color": "#ff0000", "width": 3 } }
    }

Types of Line Symbols include: "solid", "dash", "dot", "dashdot", "dashdotdot"

Types of Point Symbols include: "circle", "square", "x", "cross", "diamond"

Color is specified as #RRGGBB in HTML hexadecimal color codes


12/19/2012