NextGIS Frontend
    Preparing search index...

    Module @nextgis/ngw-kit

    NgwKit

    size version

    Build WebMap with NextGIS Web instance.

    This library contains a 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.

    npm install @nextgis/ngw-kit
    

    As WebMap starter kit

    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) => { ... });

    Check out the API Documentation

    Need to fix a bug or add a feature to @nextgis/ngw-kit? We provide custom development and support for this software. Contact us to discuss options!

    http://nextgis.com

    Classes

    IdentifyItem
    Legend
    NgwKit
    NgwResource
    NgwWebmapItem
    NgwWebmapLayerAdapter

    Interfaces

    AppSettings
    CompanyLogoOptions
    ExtendNgwWebmapLayerAdapterOptions
    FeatureIdentifyRequestOptions
    FeatureLayerIdentifyOptions
    FetchNgwLayerCountOptions
    FetchNgwLayerExtentOptions
    FetchNgwLayerItemExtentOptions
    FetchNgwResourceExtent
    GetClassAdapterOptions
    GetIdentifyGeoJsonOptions
    GetImageAdapterOptionsParams
    GetLayerAdapterOptions
    GetNgwItemOptions
    GetNgwItemsOptions
    IdentifyEvent
    IdentifyItemOptions
    IdentifyRequestOptions
    MapFeatureDisplayNameOptions
    MapSelectNgwLayerDistinctOptions
    NgwConfig
    NgwFeatureItemResponse
    NgwFeatureRequestOptions
    NgwIdentifyItem
    NgwKitOptions
    NgwLayerOptions
    NgwWebmapAdapterOptions
    NgwWebmapItemOptions
    NgwWebmapLayerAdapterEvents
    ResourceAdapter
    TreeGroup
    TreeLayer
    TreeRoot
    UploadFeatureAttachmentOptions

    Type Aliases

    ClassAdapter
    FeatureRequestParams
    FetchNgwItemOptions
    FetchNgwItemsOptions
    GeomFormat
    GetClassAdapter
    GetClassAdapterByType
    GetClassAdapterCallback
    LegendSymbols
    NgwIdentify
    NgwLayerAdapterType
    NgwRequestOptions
    PropertiesForNgwFilter
    ResourceIdDef
    ResourceNgwLayerOptions
    TileNoData
    TreeChildItem
    TreeItem
    VectorResourceAdapter

    Variables

    FEATURE_REQUEST_PARAMS
    vectorLayerGeomToPaintTypeAlias
    WEBMAP_BASELAYER_ID_PREFIX

    Functions

    addFeatureAttachment
    addNgwLayer
    createFeatureFieldFilterQueries
    createGeoJsonAdapter
    createGeoJsonFeature
    createIdentifyItem
    createLayerSymbolParam
    createNgwLayerAdapter
    createOnFirstShowAdapter
    createOnFirstShowNgwAdapter
    createPopupContent
    createRasterAdapter
    deleteFeatureAttachment
    extendNgwWebmapLayerAdapter
    featureLayerIdentify
    fetchIdentifyGeoJson
    fetchIdentifyItem
    fetchNgwExtent
    fetchNgwLayerCount
    fetchNgwLayerExtent
    fetchNgwLayerFeature
    fetchNgwLayerFeatureCollection
    fetchNgwLayerFeatures
    fetchNgwLayerItem
    fetchNgwLayerItemExtent
    fetchNgwLayerItems
    fetchNgwLayerItemsRequest
    fetchNgwResourceExtent
    getIdentifyGeoJson
    getIdentifyItems
    getImageAdapterOptions
    getLayerAdapterOptions
    getMapWidthForLanInMeters
    getNgwWebmapExtent
    getZoomFromScale
    mapFeatureDisplayName
    ngwApiToAdapterOptions
    parseDate
    parseDateFromNgw
    pixelsInMeterWidth
    prepareFieldsToNgw
    prepareNgwFieldsToPropertiesFilter
    resourceIdFromLayerOptions
    selectNgwLayerDistinct
    sendIdentifyRequest
    setScaleRatio
    updateImageParams
    updateItemRequestParam
    uploadFeatureAttachment