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