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

2.2.0 • Public • Published

NgwOl

size version

Single-file bundle for rapid deployment of OpenLayers-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, NgwOl and NgwMap will be registered as a global variable.

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

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

CDN

unpkg

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

jsdelivr

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

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

In Node.js

npm install ol @nextgis/ngw-ol

Usage

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

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-ol? 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-ol

Weekly Downloads

103

Version

2.2.0

License

MIT

Unpacked Size

16.9 MB

Total Files

17

Last publish

Collaborators

  • rendrom
  • maximdubinin
  • karavanjo