Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
@nextgis/control-container
Advanced tools
Placing control elements in the corners of the map container
This library allows placing control elements in the corners of the map container.
Libraries such as Leaflet
and Mapbox GL JS
are already doing this,
but Cesium
and Openlayers
do not have similar functionality.
╭───────────────────────────────────────────╮
│ top-left top-right │
│ MAP │
│ bottom-left bottom-right │
╰───────────────────────────────────────────╯
# latest stable
$ npm install --save-dev @nextgis/control-container
# or
$ yarn add @nextgis/control-container
import ControlContainer from '@nextgis/control-container';
// initialization
const controlContainer = new ControlContainer({ target: 'map-control-id' });
// or
const controlContainer = new ControlContainer({ map: webMap });
controlContainer.addTo('.map-control-class');
// add simple HTML string
controlContainer.append('<div>HTML</div>', 'top-right');
// or HTML element
controlContainer.append(HTMLElement, 'top-right');
// add control
const control = {
onAdd(webMap) {
const container = document.createContainer('div');
webMap.emitter.on('zoomend', () => {
container.innerHTML = webMap.getZoom();
});
return container
}
}
controlContainer.addControl(control, 'bottom-right');
Need to fix a bug or add a feature to @nextgis/control-container
? We provide custom development and support for this software. Contact us to discuss options!
1.11.0 (2021-12-19)
createInput
and dialog
methods have been moved from the @nextgis/ngw-uploader
to the new @nextgis/ngw-uploader-input
FAQs
Placing control elements in the corners of the map container
The npm package @nextgis/control-container receives a total of 45 weekly downloads. As such, @nextgis/control-container popularity was classified as not popular.
We found that @nextgis/control-container demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.