This package has been deprecated

Author message:

renamed to @nextgis/ngw-mapbox

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

0.2.2 • Public • Published

ngw-leaflet

Library providing tools to show NGW cloud through leaflet.js

Usage

Using directly in the browser

Direct <script> Include

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

<script src="./lib/ngw-leaflet.js"></script>
<div id='map'></div>
<script>
  var ngwMap = new NgwLeaflet({
    baseUrl: 'https://demo.nextgis.com',
    target: map,
    qmsId: 487,
    webmapId: 3985
  });
</script>

CDN

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

We recommend linking to a specific version number that you can update manually:

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

NPM

NPM is the recommended installation method when building large scale applications with Vue. It pairs nicely with module bundlers such as Webpack

# latest stable
$ npm install @nextgis-apps/ngw-leaflet
import NgwLeaflet from 'ngw-leaflet';

const ngwLeaflet = new NgwLeaflet({
  baseUrl: 'https://demo.nextgis.com',
  target: map,
  qmsId: 487,
  webmapId: 3985
});

Readme

Keywords

Package Sidebar

Install

npm i @nextgis-apps/ngw-mapbox

Weekly Downloads

8

Version

0.2.2

License

GPL-3.0

Unpacked Size

2.55 MB

Total Files

9

Last publish

Collaborators

  • rendrom