NextGIS Frontend
    Preparing search index...

    Module @nextgis/leaflet-control-container

    Leaflet Control Container

    size version

    Leaflet integration for @nextgis/control-container.

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

    npm install @nextgis/leaflet-control-container
    
    import {
    LeafletControlContainer,
    createButtonControl,
    } from '@nextgis/leaflet-control-container';

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

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

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

    http://nextgis.com

    LeafletControlContainer
    LeafletControlContainerOptions
    createButtonControl
    createControl
    createToggleControl