diagramLocation
diagramLocation Property
Description
The diagramLocation property is used to set the geographic location of the current diagram. This location will be used when selecting a template or a map. It will also be used to determine the location of the diagram when it stored. See the store method for more information about how the diagram location is returned when a diagram is stored.
The value of this property must be an object specifying a geographic location. This object has the following properties:
latitude: Number
+/-90 (required)
longitude: Number
+/-180 (required)
description: String
A description of the diagram location (optional)
Use the set method of the ESDWeb object to set this property as illustrated below:
Examples
To set the beginning diagram location:
editor = new window.__editor(undefined, document.getElementById('editor-node'));
editor.startup(...);
// Set the diagram location.
editor.set('diagramLocation', {
latitude: 43.61579132080078,
longitude: -116.20157623291016,
description: "An optional description..."
});
To get the beginning diagram location:
var beginningZIndex = editor.get('diagramLocation');