@nextgis/ngw-map 1.19.2 → 2.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -35,4 +35,4 @@ const ngwMap = new NgwMap({
35
35
 
36
36
  Need to fix a bug or add a feature to `@nextgis/ngw-map`? We provide custom development and support for this software. [Contact us](http://nextgis.com/contact/) to discuss options!
37
37
 
38
- [![http://nextgis.com](https://nextgis.ru/img/nextgis.png)](http://nextgis.com)
38
+ [![http://nextgis.com](https://nextgis.com/img/nextgis.png)](http://nextgis.com)
package/lib/index.d.ts CHANGED
@@ -1,272 +1,240 @@
1
- /// <reference types="node" />
2
-
3
- import CancelablePromise from '@nextgis/cancelable-promise';
4
- import type { CompanyLogoOptions } from '@nextgis/ngw-kit';
5
- import type { ControlPosition } from '@nextgis/webmap';
6
- import type { Credentials } from '@nextgis/ngw-connector';
7
- import { EventEmitter } from 'events';
8
- import type { Feature } from 'geojson';
9
- import type { FeatureCollection } from 'geojson';
10
- import type { FeatureItem } from '@nextgis/ngw-connector';
11
- import type { FeatureProperties } from '@nextgis/utils';
12
- import type { FetchNgwItemOptions } from '@nextgis/ngw-kit';
13
- import type { FetchNgwItemsOptions } from '@nextgis/ngw-kit';
14
- import type { FitOptions } from '@nextgis/webmap';
15
- import type { Geometry } from 'geojson';
16
- import { getIcon } from '@nextgis/icons';
17
- import type { IdentifyItem } from '@nextgis/ngw-kit';
18
- import type { JsonMap } from '@nextgis/utils';
19
- import type { LayerAdapter } from '@nextgis/webmap';
20
- import type { LayerDef } from '@nextgis/webmap';
21
- import type { MapClickEvent } from '@nextgis/webmap';
22
- import type { MapControls } from '@nextgis/webmap';
23
- import type { MapOptions } from '@nextgis/webmap';
24
- import type NgwConnector from '@nextgis/ngw-connector';
25
- import type { NgwFeatureItemResponse } from '@nextgis/ngw-kit';
26
- import type { NgwFeatureRequestOptions } from '@nextgis/ngw-kit';
27
- import type { NgwIdentify } from '@nextgis/ngw-kit';
28
- import type { NgwLayerOptions } from '@nextgis/ngw-kit';
29
- import type { ResourceAdapter } from '@nextgis/ngw-kit';
30
- import type { RuntimeParams } from '@nextgis/webmap';
31
- import type StrictEventEmitter from 'strict-event-emitter-types';
32
- import { WebMap } from '@nextgis/webmap';
33
- import type { WebMapEvents } from '@nextgis/webmap';
34
-
35
- export declare function createNgwMap(options: NgwMapOptions): Promise<NgwMap>;
36
-
37
- export declare type NgwIdentifyEvent<F extends FeatureProperties = FeatureProperties, G extends Geometry = Geometry> = NgwIdentify & {
38
- getIdentifyItems: () => IdentifyItem<F, G>[];
39
- };
40
-
41
- export declare interface NgwLayers {
42
- [layerId: string]: NgwLayersMem;
43
- }
44
-
45
- export declare interface NgwLayersMem {
46
- layer: ResourceAdapter;
47
- resourceId: number;
48
- }
49
-
50
- /**
51
- * Base class containing the logic of interaction WebMap with NextGIS services.
52
- *
53
- * @example
54
- * ```javascript
55
- * import { NgwMap } from '@nextgis/ngw-map';
56
- * import MapAdapter from '@nextgis/leaflet-map-adapter';
57
- * // styles are not included in the leaflet-map-adapter
58
- * import 'leaflet/dist/leaflet.css';
59
- *
60
- * const ngwMap = new NgwMap({
61
- * mapAdapter: new MapAdapter(),
62
- * target: 'map',
63
- * qmsId: 448,
64
- * baseUrl: 'https://demo.nextgis.com',
65
- * webmapId: 3985
66
- * });
67
- * ```
68
- */
69
- export declare class NgwMap<M = unknown, L = unknown, C extends object = any, O extends NgwMapOptions<M, C> = NgwMapOptions<M, C>> extends WebMap<M, L, C, NgwMapEvents, O> {
70
- static getIcon: typeof getIcon;
71
- readonly emitter: StrictEventEmitter<EventEmitter, NgwMapEvents>;
72
- connector: NgwConnector;
73
- protected _ngwLayers: NgwLayers;
74
- private $$selectFromNgwRaster?;
75
- private $$selectFromNgwVector?;
76
- private _promises;
77
- constructor(options: O);
78
- /**
79
- * Organized addition to the map design and controls elements,
80
- * calling `control.onAdd(this.webMap.mapAdapter)`
81
- * @param control - object with onAdd and onRemove methods
82
- * or a string value indicating the name of the control installed in the map adapter
83
- * @param position - position relative to the map angles
84
- * @param options - initialization parameters if the control is set as a string value
85
- *
86
- * @example
87
- * ```javascript
88
- * ngwMap.addControl(new CustomControl(), 'bottom-left');
89
- * ngwMap.addControl('ZOOM', 'top-right')
90
- * ```
91
- */
92
- addControl<K extends keyof MapControls>(controlDef: K | C, position: ControlPosition, options?: MapControls[K]): Promise<any>;
93
- /**
94
- * Add any (style, vector, webmap) NGW layer by resource definition.
95
- * @param options - set layer identification parameters and render method.
96
- *
97
- * @example
98
- * ```javascript
99
- * // Add raster layer resourceId is the style of 4004 layer
100
- * ngwMap.addNgwLayer({ resource: 4005 });
101
- * // Add vector data from layer GEOJSON source
102
- * ngwMap.addNgwLayer({
103
- * resource: 4038,
104
- * adapter: 'GEOJSON',
105
- * adapterOptions: { paint: { color: 'red' } }
106
- * });
107
- * ```
108
- */
109
- addNgwLayer(options: NgwLayerOptions): Promise<ResourceAdapter | undefined>;
110
- /**
111
- * Pans and zooms the map to the initial position specified in the options
112
- */
113
- fit(): void;
114
- fetchNgwLayerItem<G extends Geometry = Geometry, P extends FeatureProperties = FeatureProperties>(options: Omit<FetchNgwItemOptions<P>, 'connector'>): CancelablePromise<FeatureItem>;
115
- fetchNgwLayerItems<F extends FeatureProperties = FeatureProperties, G extends Geometry = Geometry>(options: Omit<FetchNgwItemsOptions<F>, 'connector'>): CancelablePromise<FeatureItem<F, G>[]>;
116
- fetchNgwLayerFeature<G extends Geometry = Geometry, P extends FeatureProperties = FeatureProperties>(options: Omit<FetchNgwItemOptions<P>, 'connector'>): CancelablePromise<Feature<G, P>>;
117
- fetchNgwLayerFeatures<G extends Geometry | null = Geometry, P extends FeatureProperties = FeatureProperties>(options: Omit<FetchNgwItemsOptions<P>, 'connector'>): CancelablePromise<FeatureCollection<G, P>>;
118
- fetchIdentifyItem<G extends Geometry = Geometry, P extends FeatureProperties = FeatureProperties>(identify: NgwIdentify, requestOptions?: NgwFeatureRequestOptions): CancelablePromise<NgwFeatureItemResponse<P, G> | undefined>;
119
- fetchIdentifyGeoJson(identify: NgwIdentify, multiple?: boolean): CancelablePromise<Feature | undefined>;
120
- /**
121
- * @deprecated use {@link fetchIdentifyGeoJson} instead
122
- */
123
- getIdentifyGeoJson(identify: NgwIdentify, multiple?: boolean): CancelablePromise<Feature | undefined>;
124
- getNgwLayers(): Promise<NgwLayers>;
125
- getNgwLayerByResourceId(id: number): Promise<LayerAdapter | undefined>;
126
- /**
127
- * Move map to layer. If the layer is NGW resource, extent will be received from the server
128
- *
129
- * @example
130
- * ```javascript
131
- * const ngwLayer = ngwMap.addNgwLayer({ id: 'ngw_layer_name', resource: 4005 });
132
- * ngwMap.fitLayer(ngwLayer);
133
- * ngwMap.fitLayer('ngw_layer_name');
134
- * ```
135
- */
136
- fitLayer(layerDef: LayerDef | number, options?: FitOptions): Promise<void>;
137
- /** @deprecated use {@link fitLayer} instead */
138
- zoomToLayer(layerDef: string | ResourceAdapter): Promise<void>;
139
- onLoad(event?: keyof NgwMapEvents): Promise<this>;
140
- removeLayer(layerDef: LayerDef): void;
141
- enableSelection(): void;
142
- disableSelection(): void;
143
- /**
144
- * @deprecated use {@link fetchNgwLayerItem} instead
145
- */
146
- getNgwLayerItem<G extends Geometry = Geometry, P extends FeatureProperties = FeatureProperties>(options: Omit<FetchNgwItemOptions<P>, 'connector'>): CancelablePromise<FeatureItem>;
147
- /**
148
- * @deprecated use {@link fetchNgwLayerItems} instead
149
- */
150
- getNgwLayerItems<F extends FeatureProperties = FeatureProperties, G extends Geometry = Geometry>(options: Omit<FetchNgwItemsOptions<F>, 'connector'>): CancelablePromise<FeatureItem<F, G>[]>;
151
- /**
152
- * @deprecated use {@link fetchNgwLayerFeature} instead
153
- */
154
- getNgwLayerFeature<G extends Geometry = Geometry, P extends FeatureProperties = FeatureProperties>(options: Omit<FetchNgwItemOptions<P>, 'connector'>): CancelablePromise<Feature<G, P>>;
155
- /**
156
- * @deprecated use {@link fetchNgwLayerFeatures} instead
157
- */
158
- getNgwLayerFeatures<G extends Geometry | null = Geometry, P extends JsonMap = JsonMap>(options: FetchNgwItemsOptions<P>): CancelablePromise<FeatureCollection<G, P>>;
159
- /** @deprecated use {@link cancelPromises} instead */
160
- cancelPromise(...args: PromiseGroup[]): void;
161
- cancelPromises(...args: PromiseGroup[]): void;
162
- selectFromNgwRaster(ev: MapClickEvent): Promise<NgwIdentifyEvent | undefined>;
163
- private _addPromise;
164
- private _isFitFromResource;
165
- private _createWebMap;
166
- private _addOsmBaseLayer;
167
- private _addQmsBaseLayer;
168
- private _selectFromNgwVector;
169
- private _prepareToIdentify;
170
- private _getSelectListenersCount;
171
- private _whiteLabel;
172
- }
173
-
174
- export declare interface NgwMapEvents extends WebMapEvents {
175
- 'ngw-map:create': NgwMap;
176
- 'ngw:select': NgwIdentifyEvent | null;
177
- 'ngw:preselect': void;
178
- }
179
-
180
- export declare interface NgwMapOptions<M = any, C = any> extends MapOptions<M, C> {
181
- /**
182
- * Url of NGW server like this https://demo.nextgis.com
183
- */
184
- baseUrl?: string;
185
- connector?: NgwConnector;
186
- /**
187
- * User credentials for authorization in NGW.
188
- * Provides the ability to display protected resources
189
- */
190
- auth?: Credentials;
191
- /**
192
- * Id number of webmap resource from NextGIS Web.
193
- * If specified through an array,
194
- * the first element will be the webmapId from NGW,
195
- * and the second will be the name for identification in the application.
196
- *
197
- * @example
198
- * ```javascript
199
- * const ngwMap = new NgwMap({webmapId: [3985, 'my-webmap']});
200
- * ngwMap.hideLayer('my-webmap');
201
- * ```
202
- */
203
- webmapId?: NgwResourceDefinition;
204
- /**
205
- * Id number of resource from [QMS](https://qms.nextgis.com/).
206
- * If specified through an array,
207
- * the first element will be the resource identifier,
208
- * and the second will be the name for identification in the application.
209
- *
210
- * @example
211
- * ```javascript
212
- * const ngwMap = new NgwMap({qmsId: [465, 'qms-basemap']});
213
- * ngwMap.hideLayer('qms-basemap');
214
- * ```
215
- */
216
- qmsId?: number | [number, string];
217
- /**
218
- * List of NGW resources to be displayed on the map.
219
- *
220
- * The resources list may include:
221
- *
222
- * - number - resource id; // also for resource
223
- * - string - resource keyname; // also for resource
224
- * - object - configuration of the layer to be added
225
- * with the one required parameter `resource` (the comment "also for resource" above refers to it)
226
- *
227
- * @example
228
- * ```javascript
229
- * NgwMap.create({
230
- * baseUrl: "https://demo.nextgis.com",
231
- * target: "map",
232
- * resources: [
233
- * // Basemap resource
234
- * 1665,
235
- * // Digital Elevation Model (DEM)-style
236
- * 4117,
237
- * // Hillshade-style
238
- * { resource: 4115, adapter: "TILE", opacity: 0.3 },
239
- * // Elevation contours-style
240
- * 'contours-style',
241
- * // Vector from Order boundary-style
242
- * {
243
- * resource: 4111,
244
- * fit: true,
245
- * adapter: "GEOJSON",
246
- * adapterOptions: { paint: { color: "red", fill: false, weight: 4 } },
247
- * },
248
- * ],
249
- * });
250
- * ```
251
- */
252
- resources?: NgwResourceDefinition[];
253
- /**
254
- * Shortcut to add OSM baselayer.
255
- */
256
- osm?: boolean;
257
- /* Excluded from this release type: identification */
258
- whitlabel?: boolean;
259
- companyLogoOptions?: CompanyLogoOptions;
260
- pixelRadius?: number;
261
- runtimeParams?: RuntimeParams[];
262
- setViewDelay?: number;
263
- }
264
-
265
- export declare type NgwResourceDefinition = number | [number, string] | NgwLayerOptions;
266
-
267
- declare type PromiseGroup = 'select' | 'identify';
268
-
269
-
270
- export * from "@nextgis/webmap";
271
-
272
- export { }
1
+ /// <reference types="node" />
2
+ import { EventEmitter } from 'events';
3
+ import CancelablePromise from '@nextgis/cancelable-promise';
4
+ import { getIcon } from '@nextgis/icons';
5
+ import { MapOptions, RuntimeParams, WebMapEvents, WebMap, MapControls, ControlPosition, LayerAdapter, LayerDef, FitOptions, MapClickEvent } from '@nextgis/webmap';
6
+ export * from '@nextgis/webmap';
7
+ import NgwConnector, { Credentials, FeatureItem } from '@nextgis/ngw-connector';
8
+ import { NgwLayerOptions, CompanyLogoOptions, ResourceAdapter, NgwIdentify, IdentifyItem, FetchNgwItemOptions, FetchNgwItemsOptions, NgwFeatureRequestOptions, NgwFeatureItemResponse } from '@nextgis/ngw-kit';
9
+ import { FeatureProperties, JsonMap } from '@nextgis/utils';
10
+ import { Geometry, Feature, FeatureCollection } from 'geojson';
11
+ import StrictEventEmitter from 'strict-event-emitter-types';
12
+
13
+ type NgwResourceDefinition = number | [number, string] | NgwLayerOptions;
14
+ interface NgwMapOptions<M = any, C = any> extends MapOptions<M, C> {
15
+ /**
16
+ * Url of NGW server like this https://demo.nextgis.com
17
+ */
18
+ baseUrl?: string;
19
+ connector?: NgwConnector;
20
+ /**
21
+ * User credentials for authorization in NGW.
22
+ * Provides the ability to display protected resources
23
+ */
24
+ auth?: Credentials;
25
+ /**
26
+ * Id number of webmap resource from NextGIS Web.
27
+ * If specified through an array,
28
+ * the first element will be the webmapId from NGW,
29
+ * and the second will be the name for identification in the application.
30
+ *
31
+ * @example
32
+ * ```javascript
33
+ * const ngwMap = new NgwMap({webmapId: [3985, 'my-webmap']});
34
+ * ngwMap.hideLayer('my-webmap');
35
+ * ```
36
+ */
37
+ webmapId?: NgwResourceDefinition;
38
+ /**
39
+ * Id number of resource from [QMS](https://qms.nextgis.com/).
40
+ * If specified through an array,
41
+ * the first element will be the resource identifier,
42
+ * and the second will be the name for identification in the application.
43
+ *
44
+ * @example
45
+ * ```javascript
46
+ * const ngwMap = new NgwMap({qmsId: [465, 'qms-basemap']});
47
+ * ngwMap.hideLayer('qms-basemap');
48
+ * ```
49
+ */
50
+ qmsId?: number | [number, string];
51
+ /**
52
+ * List of NGW resources to be displayed on the map.
53
+ *
54
+ * The resources list may include:
55
+ *
56
+ * - number - resource id; // also for resource
57
+ * - string - resource keyname; // also for resource
58
+ * - object - configuration of the layer to be added
59
+ * with the one required parameter `resource` (the comment "also for resource" above refers to it)
60
+ *
61
+ * @example
62
+ * ```javascript
63
+ * NgwMap.create({
64
+ * baseUrl: "https://demo.nextgis.com",
65
+ * target: "map",
66
+ * resources: [
67
+ * // Basemap resource
68
+ * 1665,
69
+ * // Digital Elevation Model (DEM)-style
70
+ * 4117,
71
+ * // Hillshade-style
72
+ * { resource: 4115, adapter: "TILE", opacity: 0.3 },
73
+ * // Elevation contours-style
74
+ * 'contours-style',
75
+ * // Vector from Order boundary-style
76
+ * {
77
+ * resource: 4111,
78
+ * fit: true,
79
+ * adapter: "GEOJSON",
80
+ * adapterOptions: { paint: { color: "red", fill: false, weight: 4 } },
81
+ * },
82
+ * ],
83
+ * });
84
+ * ```
85
+ */
86
+ resources?: NgwResourceDefinition[];
87
+ /**
88
+ * Shortcut to add OSM baselayer.
89
+ */
90
+ osm?: boolean;
91
+ whitlabel?: boolean;
92
+ companyLogoOptions?: CompanyLogoOptions;
93
+ pixelRadius?: number;
94
+ runtimeParams?: RuntimeParams[];
95
+ setViewDelay?: number;
96
+ }
97
+ interface NgwMapEvents extends WebMapEvents {
98
+ 'ngw-map:create': NgwMap;
99
+ 'ngw:select': NgwIdentifyEvent | null;
100
+ 'ngw:preselect': void;
101
+ }
102
+ interface NgwLayersMem {
103
+ layer: ResourceAdapter;
104
+ resourceId: number;
105
+ }
106
+ interface NgwLayers {
107
+ [layerId: string]: NgwLayersMem;
108
+ }
109
+ type NgwIdentifyEvent<F extends FeatureProperties = FeatureProperties, G extends Geometry = Geometry> = NgwIdentify & {
110
+ getIdentifyItems: () => IdentifyItem<F, G>[];
111
+ };
112
+
113
+ type PromiseGroup = 'select' | 'identify';
114
+ /**
115
+ * Base class containing the logic of interaction WebMap with NextGIS services.
116
+ *
117
+ * @example
118
+ * ```javascript
119
+ * import { NgwMap } from '@nextgis/ngw-map';
120
+ * import MapAdapter from '@nextgis/leaflet-map-adapter';
121
+ * // styles are not included in the leaflet-map-adapter
122
+ * import 'leaflet/dist/leaflet.css';
123
+ *
124
+ * const ngwMap = new NgwMap({
125
+ * mapAdapter: new MapAdapter(),
126
+ * target: 'map',
127
+ * qmsId: 448,
128
+ * baseUrl: 'https://demo.nextgis.com',
129
+ * webmapId: 3985
130
+ * });
131
+ * ```
132
+ */
133
+ declare class NgwMap<M = unknown, L = unknown, C extends object = any, O extends NgwMapOptions<M, C> = NgwMapOptions<M, C>> extends WebMap<M, L, C, NgwMapEvents, O> {
134
+ static getIcon: typeof getIcon;
135
+ readonly emitter: StrictEventEmitter<EventEmitter, NgwMapEvents>;
136
+ connector: NgwConnector;
137
+ protected _ngwLayers: NgwLayers;
138
+ private $$selectFromNgwRaster?;
139
+ private $$selectFromNgwVector?;
140
+ private _promises;
141
+ constructor(options: O);
142
+ /**
143
+ * Organized addition to the map design and controls elements,
144
+ * calling `control.onAdd(this.webMap.mapAdapter)`
145
+ * @param control - object with onAdd and onRemove methods
146
+ * or a string value indicating the name of the control installed in the map adapter
147
+ * @param position - position relative to the map angles
148
+ * @param options - initialization parameters if the control is set as a string value
149
+ *
150
+ * @example
151
+ * ```javascript
152
+ * ngwMap.addControl(new CustomControl(), 'bottom-left');
153
+ * ngwMap.addControl('ZOOM', 'top-right')
154
+ * ```
155
+ */
156
+ addControl<K extends keyof MapControls>(controlDef: K | C, position: ControlPosition, options?: MapControls[K]): Promise<any>;
157
+ /**
158
+ * Add any (style, vector, webmap) NGW layer by resource definition.
159
+ * @param options - set layer identification parameters and render method.
160
+ *
161
+ * @example
162
+ * ```javascript
163
+ * // Add raster layer resourceId is the style of 4004 layer
164
+ * ngwMap.addNgwLayer({ resource: 4005 });
165
+ * // Add vector data from layer GEOJSON source
166
+ * ngwMap.addNgwLayer({
167
+ * resource: 4038,
168
+ * adapter: 'GEOJSON',
169
+ * adapterOptions: { paint: { color: 'red' } }
170
+ * });
171
+ * ```
172
+ */
173
+ addNgwLayer(options: NgwLayerOptions): Promise<ResourceAdapter | undefined>;
174
+ /**
175
+ * Pans and zooms the map to the initial position specified in the options
176
+ */
177
+ fit(): void;
178
+ fetchNgwLayerItem<G extends Geometry = Geometry, P extends FeatureProperties = FeatureProperties>(options: Omit<FetchNgwItemOptions<P>, 'connector'>): CancelablePromise<FeatureItem>;
179
+ fetchNgwLayerItems<F extends FeatureProperties = FeatureProperties, G extends Geometry = Geometry>(options: Omit<FetchNgwItemsOptions<F>, 'connector'>): CancelablePromise<FeatureItem<F, G>[]>;
180
+ fetchNgwLayerFeature<G extends Geometry = Geometry, P extends FeatureProperties = FeatureProperties>(options: Omit<FetchNgwItemOptions<P>, 'connector'>): CancelablePromise<Feature<G, P>>;
181
+ fetchNgwLayerFeatures<G extends Geometry | null = Geometry, P extends FeatureProperties = FeatureProperties>(options: Omit<FetchNgwItemsOptions<P>, 'connector'>): CancelablePromise<FeatureCollection<G, P>>;
182
+ fetchIdentifyItem<G extends Geometry = Geometry, P extends FeatureProperties = FeatureProperties>(identify: NgwIdentify, requestOptions?: NgwFeatureRequestOptions): CancelablePromise<NgwFeatureItemResponse<P, G> | undefined>;
183
+ fetchIdentifyGeoJson(identify: NgwIdentify, multiple?: boolean): CancelablePromise<Feature | undefined>;
184
+ /**
185
+ * @deprecated use {@link fetchIdentifyGeoJson} instead
186
+ */
187
+ getIdentifyGeoJson(identify: NgwIdentify, multiple?: boolean): CancelablePromise<Feature | undefined>;
188
+ getNgwLayers(): Promise<NgwLayers>;
189
+ getNgwLayerByResourceId(id: number): Promise<LayerAdapter | undefined>;
190
+ /**
191
+ * Move map to layer. If the layer is NGW resource, extent will be received from the server
192
+ *
193
+ * @example
194
+ * ```javascript
195
+ * const ngwLayer = ngwMap.addNgwLayer({ id: 'ngw_layer_name', resource: 4005 });
196
+ * ngwMap.fitLayer(ngwLayer);
197
+ * ngwMap.fitLayer('ngw_layer_name');
198
+ * ```
199
+ */
200
+ fitLayer(layerDef: LayerDef | number, options?: FitOptions): Promise<void>;
201
+ /** @deprecated use {@link fitLayer} instead */
202
+ zoomToLayer(layerDef: string | ResourceAdapter): Promise<void>;
203
+ onLoad(event?: keyof NgwMapEvents): Promise<this>;
204
+ removeLayer(layerDef: LayerDef): void;
205
+ enableSelection(): void;
206
+ disableSelection(): void;
207
+ /**
208
+ * @deprecated use {@link fetchNgwLayerItem} instead
209
+ */
210
+ getNgwLayerItem<G extends Geometry = Geometry, P extends FeatureProperties = FeatureProperties>(options: Omit<FetchNgwItemOptions<P>, 'connector'>): CancelablePromise<FeatureItem>;
211
+ /**
212
+ * @deprecated use {@link fetchNgwLayerItems} instead
213
+ */
214
+ getNgwLayerItems<F extends FeatureProperties = FeatureProperties, G extends Geometry = Geometry>(options: Omit<FetchNgwItemsOptions<F>, 'connector'>): CancelablePromise<FeatureItem<F, G>[]>;
215
+ /**
216
+ * @deprecated use {@link fetchNgwLayerFeature} instead
217
+ */
218
+ getNgwLayerFeature<G extends Geometry = Geometry, P extends FeatureProperties = FeatureProperties>(options: Omit<FetchNgwItemOptions<P>, 'connector'>): CancelablePromise<Feature<G, P>>;
219
+ /**
220
+ * @deprecated use {@link fetchNgwLayerFeatures} instead
221
+ */
222
+ getNgwLayerFeatures<G extends Geometry | null = Geometry, P extends JsonMap = JsonMap>(options: FetchNgwItemsOptions<P>): CancelablePromise<FeatureCollection<G, P>>;
223
+ /** @deprecated use {@link cancelPromises} instead */
224
+ cancelPromise(...args: PromiseGroup[]): void;
225
+ cancelPromises(...args: PromiseGroup[]): void;
226
+ selectFromNgwRaster(ev: MapClickEvent): Promise<NgwIdentifyEvent | undefined>;
227
+ private _addPromise;
228
+ private _isFitFromResource;
229
+ private _createWebMap;
230
+ private _addOsmBaseLayer;
231
+ private _addQmsBaseLayer;
232
+ private _selectFromNgwVector;
233
+ private _prepareToIdentify;
234
+ private _getSelectListenersCount;
235
+ private _whiteLabel;
236
+ }
237
+
238
+ declare function createNgwMap(options: NgwMapOptions): Promise<NgwMap>;
239
+
240
+ export { type NgwIdentifyEvent, type NgwLayers, type NgwLayersMem, NgwMap, type NgwMapEvents, type NgwMapOptions, type NgwResourceDefinition, createNgwMap };