Skip to main content

@mapgear/geoapps > Controls

Controls class

Provides the ability to add some UI controls to GeoApps maps. Can be accessed through the Map.Controls-property.

Signature:
export declare class Controls 

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 Controls 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>");
map.Controls.AddZoomControls();

Methods

MethodModifiersDescription
AddDefaultPopups()(BETA) Add a default GeoApps popups to the map.
AddZoomControls()Add basic zoom controls (zoom in and zoom out) to the map