WebMap plugin and utilities that allow you to interact with NextGIS Web.
Make sure CORS is registered in the NextGIS Web settings to be able to send requests.
As WebMap starter kit example
import { NgwKit } from '@nextgis/ngw-kit';import { createWebMap } from '@nextgis/webmap';import LeafletMapAdapter from '@nextgis/leaflet-map-adapter';import 'leaflet/dist/leaflet.css';createWebMap({ mapAdapter: new LeafletMapAdapter(), starterKits: [ new NgwKit({ baseUrl: 'YOU NEXTGIS WEB URL', resource: 'WEBMAP RESOURCE ID', }), ],});
Get NGW vector layer items
import { getNgwLayerItem, getNgwLayerItems } from '@nextgis/ngw-kit';import NgwConnector from '@nextgis/ngw-connector';const connector = new NgwConnector({ baseUrl: 'YOU NEXTGIS WEB URL'});getNgwLayerItem({ resourceId: 2011, featureId: 1, connector: connector}).then((item) => { ... });getNgwLayerItems({ resourceId: 2011, offset: 10, limit: 300, fields: ['name', 'year', 'Ni', 'Cu', 'Pt', 'Pd', 'Au'] orderBy: ['year']}).then((items) => { ... });
Generated using TypeDoc
WebMap plugin and utilities that allow you to interact with NextGIS Web.
Remarks
Make sure CORS is registered in the NextGIS Web settings to be able to send requests.
Example
As WebMap starter kit example
Example
Get NGW vector layer items