minMapWidth Property

Description

The property minMapWidth is used to control the minimum width of diagrams that contain a map.

Note that mapping is a separately licensed feature of the ESD/SPD Web SDK.

To set this property, use the ESDWeb object's set method, as illustrated in the example below.

The value of this property must set to a length string (for example, "200'" or "100m") or to a number in the current unit-of-measure.

The current unit-of-measure is defined by the property uom.

Example

editor = new ESDWeb(null, 'editorNode');

editor.startup(...);

// Set the current unit-of-measure.
editor.set('uom', 'feetAndInches');

// Create map services and configure the map layer.
editor.set('proxyTemplate', '/proxy?url={url}');
editor.set('minMapWidth', '200\''); // 200 feet
editor.set('minMapHeight', 200);    // 200 feet (The UOM is feet and inches).
editor.createMapService('Bing', {key: '==== Bing Map API Key ====='});
editor.createMapService('Google', {key: '==== Google Map API Key ====='});