Examples | RasterJS API | Urbi Documentation
RasterJS API

Control elements

The following are examples of adding, placing, and working with control elements. For more information about the work with control elements use the Controls section of documentation.

If you need to obtain a "clear" map, with no extra control elements, then the following example will help you:

<!DOCTYPE html>
<html>
    <head>
        <title>Hide control elements by default</title>
        <script src="https://maps.api.2gis.ru/2.0/loader.js"></script>
    </head>
    <body>
        <div id="map" style="width: 100%; height: 400px"></div>
        <script>
            DG.then(function () {
                var map = DG.map('map', {
                    center: [54.98, 82.89],
                    zoom: 13,
                    fullscreenControl: false,
                    zoomControl: false,
                });
            });
        </script>
    </body>
</html>