NextGIS Frontend
    Preparing search index...

    Module @nextgis/maplibre-gl-control-container

    MapLibre GL Control Container

    size version

    MapLibre GL JS integration for @nextgis/control-container.

    The package exposes MapLibre-compatible control factories and a control container that integrates with native MapLibre control corners.

    npm install @nextgis/maplibre-gl-control-container
    
    import {
    MaplibreGLControlContainer,
    createButtonControl,
    } from '@nextgis/maplibre-gl-control-container';

    const controls = new MaplibreGLControlContainer(map);
    const button = createButtonControl({
    html: '+',
    title: 'Action',
    onClick: () => {},
    });

    controls.addControl(button, 'top-right');

    Need to fix a bug or add a feature to @nextgis/maplibre-gl-control-container? We provide custom development and support for this software. Contact us to discuss options!

    http://nextgis.com

    MaplibreGLControlContainer
    MaplibreGLControlContainerOptions
    createButtonControl
    createControl
    createToggleControl