Skip to main content

@mapgear/geoapps > Extensions

Extensions class

Extensions, configured in the GeoApps Manager, allow use of other components, such as Google Analytics. The integration or user interface should use the keys provided for finding the correct extension and using its settings for usage. Can be accessed through the Map.Extensions-property.

Signature:
export declare class Extensions 

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the Extensions class.

Example

An example of the usage:

// Connect as anonymous user to a geoapps environment
geoapps.Initialize("<specified tenant>");

// Add the map to a div with element id `map`
var map = geoapps.AddMap("map", "<mapId>");

// Wait till the map loaded, before starting the extensions
map.onLoaded.add(() => {
// Extensions
console.log(map.Extensions.Items);
});

Properties

PropertyModifiersTypeDescription
ItemsreadonlyExtension[]Returns the extensions of this map