Control | MapGL | 2GIS 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