OpenLayers integration for @nextgis/control-container.
The package exposes OpenLayers-compatible control factories and a control container that places controls into map corners and nested panels.
npm install @nextgis/ol-control-container
import {
OlControlContainer,
createButtonControl,
} from '@nextgis/ol-control-container';
const controls = new OlControlContainer();
map.addControl(controls);
const button = createButtonControl({
html: '+',
title: 'Action',
onClick: () => {},
});
controls.addControl(button, 'top-right');
Need to fix a bug or add a feature to @nextgis/ol-control-container?
We provide custom development and support for this software.
Contact us to discuss options!