Control | MapGL | Urbi Documentation
MapGL JS API

Control

Class for the map's controls creating.

new constructor(map, content, options)

Example:

const control = new mapgl.Control(
    map,
    '<button>Some text</button>',
    { position: 'topLeft' },
);
Parameters
map
Map

The map instance.

content
string

Control HTML content.

options
ControlOptions

Control options.

Returns
Methods