userSettings

userSettings Property

Description

The userSettings property provides values for user settings.

Use the set method of the ESDWeb object to set this property as illustrated below, or pass it to the startup method as part of the configuration parameter.

The value of this property must be a JavaScript object containing a hash of configuration settings. These settings are supported:

Example

editor = new window.__editor(undefined, document.getElementById('editor-node'));

// Configure editor settings:
editor.set('userSettings',
    {
        laneWidth: '10 ft',
        shoulderWidth: '4 ft',
        strokeWidth: '4 in',
        dirOfTravel: 'normal',
        uom: 'feetAndInches'
        dimInactiveLayer: true,
        outlineOnly: false,
        excludedSymbolCollections: [
            'VehicleAdvanced',
            'RoadwayAdvanced'
        ],
        exportOptions: {
            width: 1000,
            height: 1000,
            margin: 20,
            format: "image/jpeg",
            imageQuality: 1,
            resolutionPixels: 72,
            resolutionUnit: 'inch'
        }
    }
);