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!