Socket
Socket
Sign inDemoInstall

@nextgis/utils

Package Overview
Dependencies
0
Maintainers
3
Versions
95
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @nextgis/utils

Common development tools


Version published
Maintainers
3
Created

Changelog

Source

2.2.3 (2024-05-06)

Features

  • leaflet-map-adapter: implement layer dblclick event (244f85c)
  • maplibre-gl-map-adapter: implement layer dblclick event (3918901)
  • ngw-map: add extent check for fit bounds (9703c2b)
  • ol-map-adapter: implement layer dblclick event (8dcf79b)
  • utils: add checkExtent util (4c660db)
  • webmap: add vector layer dblclick event (38e105f)

Readme

Source

Utils

size version

Common development tools

Installation

In Browser

Simply download and include with a script tag, Utils will be registered as a global variable.

Assets
<script src="./lib/utils.global.js"></script>

<script>
  Utils.Clipboard.copy('text to copy');
</script>
CDN

unpkg

<script src="https://unpkg.com/@nextgis/utils"></script>

jsdelivr

<script src="https://cdn.jsdelivr.net/npm/@nextgis/utils"></script>
ESM
<script type="module">
    import { Clipboard } from './lib/utils.esm-browser.prod.js';
    // import { Clipboard } from 'https://unpkg.com/@nextgis/utils/lib/utils.esm-browser.prod.js';

    document.getElementById('copy-btn').addEventListener('click', () => {
      const text = document.getElementById('copy-input').value;
      Clipboard.copy(text);
    });
  </script>

We recommend linking to a specific version number /utils@[version]

In Node.js

# latest stable
npm install @nextgis/ngw-connector

Usage

import { debounce, deepmerge, defined } from '@nextgis/utils';

const webMap = new WebMap(deepmerge(opt1, opt2));

const onMapMove = debounce(() => /** do something no more than once a second */, 1000);

webMap.emitter.on('move', onMapMove);

Check out the API Documentation

Commercial support

Need to fix a bug or add a feature to @nextgis/utils? We provide custom development and support for this software. Contact us to discuss options!

http://nextgis.com

Keywords

FAQs

Last updated on 06 May 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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc