Map | MapGL | Urbi Documentation
MapGL JS API

Map

The main class for map initialization.

new constructor(container, options)

Example:

const map = new mapgl.Map('map', {
  center: [55.185346, 25.14226],
  zoom: 16,
});
Parameters
container
HTMLElementstring

The HTML element in which the map appears, or its ID.

options
MapOptions

Map initialization options.

Returns
Methods