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!