Creates a geolocation service based on a declared location service scheme, making it available for use in the diagram editor.
Note that mapping is a separately licensed feature of the ESD/SPD Web SDK.
.createLocationService(/* String */ schemeId, /* Object */ serviceConfiguration);
The ID of a declared geolocation scheme. Two geolocation schemes are pre-declared, 'Bing' and 'Google'. These two schemes use the REST-based geo-location services provided by Google and Bing to find location information for a diagram.
A hash containing information used to initialize the geolocation service. For the two pre-declared geolocation schemes, this should contain one attribute, 'key', with the value set to the API key for Bing or Google maps.
Custom geolocation schemes can be declared to enable the use of other geolocation services. For more information on this, contact PAE support.
editor = new ESDWeb(null, 'editorNode'); editor.startup(); // If the map feature is enabled, create map services and configure the map layer. if (editor.get('features').some(function (f) { return f === 'GIS'})) { editor.createLocationService('Bing', {key: '==== Bing Map API Key ====='}); }