@nextgis/ngw-leaflet
TypeScript icon, indicating that this package has built-in type declarations

2.2.3 • Public • Published

NgwLeaflet

size version

Single-file bundle for rapid deployment of Leaflet-based web-gis applications with NextGIS services

Styles images and other assets are already in bundle, you don't need to include anything except one JS file!

Installation

In Browser

Include assets

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

<script src="../lib/ngw-leaflet.global.js"></script>

<div id='map'></div>
<script>
  // var ngwMap = new NgwMap({
  var ngwMap = new NgwLeaflet({
    baseUrl: 'https://demo.nextgis.com',
    target: 'map',
    qmsId: 448,
    webmapId: 3985
  });
</script>

CDN

unpkg

<script src="https://unpkg.com/@nextgis/ngw-leaflet"></script>

jsdelivr

<script src="https://cdn.jsdelivr.net/npm/@nextgis/ngw-leaflet"></script>

We recommend linking to a specific version number /ngw-leaflet@[version]

In Node.js

npm install leaflet @nextgis/ngw-leaflet

Usage

import NgwMap from '@nextgis/ngw-leaflet';

const ngwMap = new NgwMap({
  baseUrl: 'https://demo.nextgis.com',
  target: 'map',
  qmsId: 448,
  webmapId: 3985
});

Check out the API Documentation

Commercial support

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

http://nextgis.com

Readme

Keywords

Package Sidebar

Install

npm i @nextgis/ngw-leaflet

Weekly Downloads

76

Version

2.2.3

License

MIT

Unpacked Size

8.08 MB

Total Files

16

Last publish

Collaborators

  • rendrom
  • maximdubinin
  • karavanjo