ZoomControl | MapGL | Urbi Documentation
MapGL JS API

ZoomControl

A basic control with two buttons for zooming in and out. It is added to the map by default unless you set its zoomControl option to false.

Extends: Control
new constructor(map, options)

Example:

const control = new mapgl.ZoomControl(
    map,
    { position: 'topRight' },
);
Parameters
map
Map

The map instance.

options
ControlOptions

Control options.

Returns
Methods