Socket
Socket
Sign inDemoInstall

@nextgis/control-container

Package Overview
Dependencies
11
Maintainers
3
Versions
109
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @nextgis/control-container

Placing control elements in the corners of the map container


Version published
Weekly downloads
21
decreased by-38.24%
Maintainers
3
Created
Weekly downloads
Ā 

Changelog

Source

2.3.0 (2024-06-07)

Bug Fixes

  • build-tools: fix rollup config to resolve node modules in browser (4f9c6b6)
  • cesium-map-adapter: put mouse click on terrain (fabb08a)

Features

  • cesium-map-adapter: implement geojson adapter removeLayer method (8151a19)
  • cesium-map-adapter: implement getZoom method (96ab1c7)
  • ngw-connector: implement clearCache method (17428b1)
  • ngw-map: add identify highlight possibility (40b3f90)
  • ngw-uploader: add useTus option (ef9e06f)

Readme

Source

Control Container

size version

This library allows placing control elements in the corners of the map container.

Libraries such as Leaflet and Maplibre GL JS are already doing this, but Cesium and Openlayers do not have similar functionality.

ā•­ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā•®
ā”‚ top-left                        top-right ā”‚
ā”‚                   MAP                     ā”‚
ā”‚ bottom-left                  bottom-right ā”‚
ā•°ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā•Æ

Installation

# latest stable
npm install @nextgis/control-container

Usage

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');

Commercial support

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!

http://nextgis.com

Keywords

FAQs

Last updated on 07 Jun 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with āš”ļø by Socket Inc