Module @nextgis/ngw-leaflet

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!

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>

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]

npm install leaflet @nextgis/ngw-leaflet
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

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

Index

Classes