v-openlayers 2.9.3 → 2.9.4

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.
@@ -7,9 +7,9 @@ declare const _sfc_main$9: {
7
7
  M: {};
8
8
  Defaults: {};
9
9
  }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
10
- __isFragment?: undefined;
11
- __isTeleport?: undefined; /** @type {string} */
12
- __isSuspense?: undefined;
10
+ __isFragment?: never;
11
+ __isTeleport?: never; /** @type {string} */
12
+ __isSuspense?: never;
13
13
  } & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
14
14
  props: {
15
15
  mapProvider: {
@@ -32,9 +32,9 @@ declare const _sfc_main$5: {
32
32
  M: {};
33
33
  Defaults: {};
34
34
  }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
35
- __isFragment?: undefined;
36
- __isTeleport?: undefined; /** @type {string} */
37
- __isSuspense?: undefined;
35
+ __isFragment?: never;
36
+ __isTeleport?: never; /** @type {string} */
37
+ __isSuspense?: never;
38
38
  } & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
39
39
  setup(__props: any): (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
40
40
  [key: string]: any;
@@ -49,9 +49,9 @@ declare const _sfc_main$j: {
49
49
  M: {};
50
50
  Defaults: {};
51
51
  }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
52
- __isFragment?: undefined;
53
- __isTeleport?: undefined; /** @type {string} */
54
- __isSuspense?: undefined;
52
+ __isFragment?: never;
53
+ __isTeleport?: never; /** @type {string} */
54
+ __isSuspense?: never;
55
55
  } & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
56
56
  props: {
57
57
  shapes: {
@@ -96,9 +96,9 @@ declare const _sfc_main$6: {
96
96
  M: {};
97
97
  Defaults: {};
98
98
  }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
99
- __isFragment?: undefined;
100
- __isTeleport?: undefined; /** @type {string} */
101
- __isSuspense?: undefined;
99
+ __isFragment?: never;
100
+ __isTeleport?: never; /** @type {string} */
101
+ __isSuspense?: never;
102
102
  } & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
103
103
  setup(__props: any): (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
104
104
  [key: string]: any;
@@ -113,7 +113,7 @@ export class OlHandler extends VMap {
113
113
  svgMap: {};
114
114
  getMap(): {
115
115
  loaded_: boolean;
116
- boundHandleBrowserEvent_: (browserEvent: UIEvent, type?: string | undefined) => void;
116
+ boundHandleBrowserEvent_: any;
117
117
  maxTilesLoading_: any;
118
118
  pixelRatio_: any;
119
119
  /**
@@ -126,14 +126,14 @@ export class OlHandler extends VMap {
126
126
  frameState_: {
127
127
  animate: boolean;
128
128
  coordinateToPixelTransform: number[];
129
- declutter: null;
129
+ declutter: any;
130
130
  extent: any;
131
131
  index: number;
132
132
  layerIndex: number;
133
133
  layerStatesArray: any[];
134
134
  pixelRatio: any;
135
135
  pixelToCoordinateTransform: number[];
136
- postRenderFunctions: never[];
136
+ postRenderFunctions: any[];
137
137
  size: any;
138
138
  tileQueue: TileQueue;
139
139
  time: number;
@@ -143,41 +143,41 @@ export class OlHandler extends VMap {
143
143
  wantedTiles: {};
144
144
  mapId: any;
145
145
  renderTargets: {};
146
- } | null;
146
+ };
147
147
  previousExtent_: any;
148
148
  viewPropertyListenerKey_: {
149
149
  target: any;
150
150
  type: any;
151
151
  listener: any;
152
- } | null;
152
+ };
153
153
  viewChangeListenerKey_: {
154
154
  target: any;
155
155
  type: any;
156
156
  listener: any;
157
- } | null;
157
+ };
158
158
  layerGroupPropertyListenerKeys_: {
159
159
  target: any;
160
160
  type: any;
161
161
  listener: any;
162
- }[] | null;
162
+ }[];
163
163
  viewport_: HTMLDivElement;
164
164
  overlayContainer_: HTMLDivElement;
165
165
  overlayContainerStopEvent_: HTMLDivElement;
166
- mapBrowserEventHandler_: MapBrowserEventHandler | null;
166
+ mapBrowserEventHandler_: MapBrowserEventHandler;
167
167
  moveTolerance_: any;
168
168
  keyboardEventTarget_: any;
169
169
  targetChangeHandlerKeys_: {
170
170
  target: any;
171
171
  type: any;
172
172
  listener: any;
173
- }[] | null;
174
- targetElement_: HTMLElement | null | undefined;
173
+ }[];
174
+ targetElement_: HTMLElement;
175
175
  resizeObserver_: ResizeObserver;
176
176
  controls: any;
177
177
  interactions: any;
178
178
  overlays_: any;
179
179
  overlayIdIndex_: {};
180
- renderer_: CompositeMapRenderer | null;
180
+ renderer_: CompositeMapRenderer;
181
181
  postRenderFunctions_: any[];
182
182
  tileQueue_: TileQueue;
183
183
  /**
@@ -244,7 +244,7 @@ export class OlHandler extends VMap {
244
244
  * @template T
245
245
  * @api
246
246
  */
247
- forEachFeatureAtPixel<T>(pixel: any, callback: (arg0: any, arg1: any, arg2: any) => T, options2: any): T | undefined;
247
+ forEachFeatureAtPixel<T>(pixel: any, callback: (arg0: any, arg1: any, arg2: any) => T, options2: any): T;
248
248
  /**
249
249
  * Get all features that intersect a pixel on the viewport.
250
250
  * @param {import("./pixel.js").Pixel} pixel Pixel.
@@ -301,7 +301,7 @@ export class OlHandler extends VMap {
301
301
  * @observable
302
302
  * @api
303
303
  */
304
- getTarget(): string | HTMLElement | undefined;
304
+ getTarget(): string | HTMLElement;
305
305
  /**
306
306
  * Get the DOM element into which this map is rendered. In contrast to
307
307
  * `getTarget` this method always return an `Element`, or `null` if the
@@ -453,7 +453,7 @@ export class OlHandler extends VMap {
453
453
  * @param {UIEvent} browserEvent Browser event.
454
454
  * @param {string} [type] Type.
455
455
  */
456
- handleBrowserEvent(browserEvent: UIEvent, type?: string | undefined): void;
456
+ handleBrowserEvent(browserEvent: UIEvent, type?: string): void;
457
457
  /**
458
458
  * @param {MapBrowserEvent} mapBrowserEvent The event to handle.
459
459
  */
@@ -504,7 +504,7 @@ export class OlHandler extends VMap {
504
504
  * @api
505
505
  */
506
506
  render(): void;
507
- animationDelayKey_: number | undefined;
507
+ animationDelayKey_: number;
508
508
  /**
509
509
  * Remove the given control from the map.
510
510
  * @param {import("./control/Control.js").default} control Control.
@@ -547,7 +547,7 @@ export class OlHandler extends VMap {
547
547
  * @private
548
548
  */
549
549
  renderFrame_(time: number): void;
550
- renderComplete_: boolean | undefined;
550
+ renderComplete_: boolean;
551
551
  postRenderTimeoutHandle_: any;
552
552
  /**
553
553
  * Sets the layergroup of this map.
@@ -570,7 +570,7 @@ export class OlHandler extends VMap {
570
570
  * @observable
571
571
  * @api
572
572
  */
573
- setTarget(target?: string | HTMLElement | undefined): void;
573
+ setTarget(target?: string | HTMLElement): void;
574
574
  /**
575
575
  * Set the view for this map.
576
576
  * @param {View|Promise<import("./View.js").ViewOptions>} view The view that controls this map.
@@ -593,7 +593,7 @@ export class OlHandler extends VMap {
593
593
  * @private
594
594
  */
595
595
  updateViewportSize_(size2: any): void;
596
- values_: {} | null;
596
+ values_: {};
597
597
  /**
598
598
  * Gets a value.
599
599
  * @param {string} key Key name.
@@ -621,7 +621,7 @@ export class OlHandler extends VMap {
621
621
  */
622
622
  getPropertiesInternal(): {
623
623
  [x: string]: any;
624
- } | null;
624
+ };
625
625
  /**
626
626
  * @return {boolean} The object has properties.
627
627
  */
@@ -648,7 +648,7 @@ export class OlHandler extends VMap {
648
648
  * @param {boolean} [silent] Update without triggering an event.
649
649
  * @api
650
650
  */
651
- set(key: string, value: any, silent?: boolean | undefined): void;
651
+ set(key: string, value: any, silent?: boolean): void;
652
652
  /**
653
653
  * Sets a collection of key-value pairs. Note that this changes any existing
654
654
  * properties and adds new ones (it does not remove any existing properties).
@@ -658,7 +658,7 @@ export class OlHandler extends VMap {
658
658
  */
659
659
  setProperties(values: {
660
660
  [x: string]: any;
661
- }, silent?: boolean | undefined): void;
661
+ }, silent?: boolean): void;
662
662
  /**
663
663
  * Apply any properties from another object without triggering events.
664
664
  * @param {BaseObject} source The source object.
@@ -671,7 +671,7 @@ export class OlHandler extends VMap {
671
671
  * @param {boolean} [silent] Unset without triggering an event.
672
672
  * @api
673
673
  */
674
- unset(key: string, silent?: boolean | undefined): void;
674
+ unset(key: string, silent?: boolean): void;
675
675
  on: (type: string | string[], listener: (arg0: any) => any) => any;
676
676
  once: (type: string | string[], listener: (arg0: any) => any) => any;
677
677
  un: (type: string | string[], listener: (arg0: any) => any) => void;
@@ -710,9 +710,9 @@ export class OlHandler extends VMap {
710
710
  */
711
711
  unInternal(type: string | string[], listener: (arg0: any) => any): void;
712
712
  eventTarget_: any;
713
- pendingRemovals_: {} | null;
714
- dispatching_: {} | null;
715
- listeners_: {} | null;
713
+ pendingRemovals_: {};
714
+ dispatching_: {};
715
+ listeners_: {};
716
716
  /**
717
717
  * @param {string} type Type.
718
718
  * @param {import("../events.js").Listener} listener Listener.
@@ -728,7 +728,7 @@ export class OlHandler extends VMap {
728
728
  * event object or if any of the listeners returned false.
729
729
  * @api
730
730
  */
731
- dispatchEvent(event: any): boolean | undefined;
731
+ dispatchEvent(event: any): boolean;
732
732
  /**
733
733
  * Get the listeners for a specified event type. Listeners are returned in the
734
734
  * order that they will be called in.
@@ -736,13 +736,13 @@ export class OlHandler extends VMap {
736
736
  * @param {string} type Type.
737
737
  * @return {Array<import("../events.js").Listener>|undefined} Listeners.
738
738
  */
739
- getListeners(type: string): any[] | undefined;
739
+ getListeners(type: string): any[];
740
740
  /**
741
741
  * @param {string} [type] Type. If not provided,
742
742
  * `true` will be returned if this event target has any listeners.
743
743
  * @return {boolean} Has listeners.
744
744
  */
745
- hasListener(type?: string | undefined): boolean;
745
+ hasListener(type?: string): boolean;
746
746
  /**
747
747
  * @param {string} type Type.
748
748
  * @param {import("../events.js").Listener} listener Listener.
@@ -753,7 +753,7 @@ export class OlHandler extends VMap {
753
753
  * Clean up.
754
754
  */
755
755
  dispose(): void;
756
- } | null;
756
+ };
757
757
  setMap(map: any): void;
758
758
  /**
759
759
  * 底图切换切换
@@ -792,13 +792,13 @@ declare class InteractionHandler {
792
792
  */
793
793
  isModifying(): () => any;
794
794
  layers: any;
795
- selectChangeHandlerRef: ((e: any) => void) | null;
796
- modifyStartHandlerRef: ((e: any) => void) | null;
795
+ selectChangeHandlerRef: any;
796
+ modifyStartHandlerRef: any;
797
797
  modifyChangeHandlerRef: any;
798
- modifyEndHandlerRef: ((e: any) => void) | null;
798
+ modifyEndHandlerRef: any;
799
799
  map: any;
800
- select: Select | undefined;
801
- modify: Modify | undefined;
800
+ select: Select;
801
+ modify: Modify;
802
802
  /**
803
803
  * 绑定键盘事件(Ctrl+Z撤销,Ctrl+Y重做)
804
804
  */
@@ -957,9 +957,9 @@ declare const _sfc_main$a: {
957
957
  M: {};
958
958
  Defaults: {};
959
959
  }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
960
- __isFragment?: undefined;
961
- __isTeleport?: undefined; /** @type {string} */
962
- __isSuspense?: undefined;
960
+ __isFragment?: never;
961
+ __isTeleport?: never; /** @type {string} */
962
+ __isSuspense?: never;
963
963
  } & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
964
964
  props: {
965
965
  mapProvider: {
@@ -981,9 +981,9 @@ declare const _sfc_main$b: {
981
981
  M: {};
982
982
  Defaults: {};
983
983
  }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
984
- __isFragment?: undefined;
985
- __isTeleport?: undefined; /** @type {string} */
986
- __isSuspense?: undefined;
984
+ __isFragment?: never;
985
+ __isTeleport?: never; /** @type {string} */
986
+ __isSuspense?: never;
987
987
  } & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
988
988
  props: {
989
989
  mapStyle: {
@@ -1005,9 +1005,9 @@ declare const _sfc_main$c: {
1005
1005
  M: {};
1006
1006
  Defaults: {};
1007
1007
  }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
1008
- __isFragment?: undefined;
1009
- __isTeleport?: undefined; /** @type {string} */
1010
- __isSuspense?: undefined;
1008
+ __isFragment?: never;
1009
+ __isTeleport?: never; /** @type {string} */
1010
+ __isSuspense?: never;
1011
1011
  } & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
1012
1012
  props: {
1013
1013
  mapProvider: {
@@ -1036,9 +1036,9 @@ declare const _sfc_main$7: {
1036
1036
  M: {};
1037
1037
  Defaults: {};
1038
1038
  }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
1039
- __isFragment?: undefined;
1040
- __isTeleport?: undefined; /** @type {string} */
1041
- __isSuspense?: undefined;
1039
+ __isFragment?: never;
1040
+ __isTeleport?: never; /** @type {string} */
1041
+ __isSuspense?: never;
1042
1042
  } & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
1043
1043
  props: {
1044
1044
  mapProvider: {
@@ -1059,9 +1059,9 @@ declare const _sfc_main$8: {
1059
1059
  M: {};
1060
1060
  Defaults: {};
1061
1061
  }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
1062
- __isFragment?: undefined;
1063
- __isTeleport?: undefined; /** @type {string} */
1064
- __isSuspense?: undefined;
1062
+ __isFragment?: never;
1063
+ __isTeleport?: never; /** @type {string} */
1064
+ __isSuspense?: never;
1065
1065
  } & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
1066
1066
  props: {
1067
1067
  mapProvider: {
@@ -1184,10 +1184,10 @@ export class WmsHandler {
1184
1184
  requestFeatureByPoint({ layer, coordinate, projection: projection2, options: options2 }: {
1185
1185
  layer: any;
1186
1186
  coordinate: any;
1187
- projection?: string | undefined;
1187
+ projection?: string;
1188
1188
  options?: {
1189
1189
  INFO_FORMAT: string;
1190
- } | undefined;
1190
+ };
1191
1191
  }): Promise<any>;
1192
1192
  }
1193
1193
  declare namespace ol_entry {
@@ -1203,7 +1203,7 @@ declare class VMap {
1203
1203
  constructor(target?: string);
1204
1204
  map: {
1205
1205
  loaded_: boolean;
1206
- boundHandleBrowserEvent_: (browserEvent: UIEvent, type?: string | undefined) => void;
1206
+ boundHandleBrowserEvent_: any;
1207
1207
  maxTilesLoading_: any;
1208
1208
  pixelRatio_: any;
1209
1209
  /**
@@ -1216,14 +1216,14 @@ declare class VMap {
1216
1216
  frameState_: {
1217
1217
  animate: boolean;
1218
1218
  coordinateToPixelTransform: number[];
1219
- declutter: null;
1219
+ declutter: any;
1220
1220
  extent: any;
1221
1221
  index: number;
1222
1222
  layerIndex: number;
1223
1223
  layerStatesArray: any[];
1224
1224
  pixelRatio: any;
1225
1225
  pixelToCoordinateTransform: number[];
1226
- postRenderFunctions: never[];
1226
+ postRenderFunctions: any[];
1227
1227
  size: any;
1228
1228
  tileQueue: TileQueue;
1229
1229
  time: number;
@@ -1233,41 +1233,41 @@ declare class VMap {
1233
1233
  wantedTiles: {};
1234
1234
  mapId: any;
1235
1235
  renderTargets: {};
1236
- } | null;
1236
+ };
1237
1237
  previousExtent_: any;
1238
1238
  viewPropertyListenerKey_: {
1239
1239
  target: any;
1240
1240
  type: any;
1241
1241
  listener: any;
1242
- } | null;
1242
+ };
1243
1243
  viewChangeListenerKey_: {
1244
1244
  target: any;
1245
1245
  type: any;
1246
1246
  listener: any;
1247
- } | null;
1247
+ };
1248
1248
  layerGroupPropertyListenerKeys_: {
1249
1249
  target: any;
1250
1250
  type: any;
1251
1251
  listener: any;
1252
- }[] | null;
1252
+ }[];
1253
1253
  viewport_: HTMLDivElement;
1254
1254
  overlayContainer_: HTMLDivElement;
1255
1255
  overlayContainerStopEvent_: HTMLDivElement;
1256
- mapBrowserEventHandler_: MapBrowserEventHandler | null;
1256
+ mapBrowserEventHandler_: MapBrowserEventHandler;
1257
1257
  moveTolerance_: any;
1258
1258
  keyboardEventTarget_: any;
1259
1259
  targetChangeHandlerKeys_: {
1260
1260
  target: any;
1261
1261
  type: any;
1262
1262
  listener: any;
1263
- }[] | null;
1264
- targetElement_: HTMLElement | null | undefined;
1263
+ }[];
1264
+ targetElement_: HTMLElement;
1265
1265
  resizeObserver_: ResizeObserver;
1266
1266
  controls: any;
1267
1267
  interactions: any;
1268
1268
  overlays_: any;
1269
1269
  overlayIdIndex_: {};
1270
- renderer_: CompositeMapRenderer | null;
1270
+ renderer_: CompositeMapRenderer;
1271
1271
  postRenderFunctions_: any[];
1272
1272
  tileQueue_: TileQueue;
1273
1273
  /**
@@ -1334,7 +1334,7 @@ declare class VMap {
1334
1334
  * @template T
1335
1335
  * @api
1336
1336
  */
1337
- forEachFeatureAtPixel<T>(pixel: any, callback: (arg0: any, arg1: any, arg2: any) => T, options2: any): T | undefined;
1337
+ forEachFeatureAtPixel<T>(pixel: any, callback: (arg0: any, arg1: any, arg2: any) => T, options2: any): T;
1338
1338
  /**
1339
1339
  * Get all features that intersect a pixel on the viewport.
1340
1340
  * @param {import("./pixel.js").Pixel} pixel Pixel.
@@ -1391,7 +1391,7 @@ declare class VMap {
1391
1391
  * @observable
1392
1392
  * @api
1393
1393
  */
1394
- getTarget(): string | HTMLElement | undefined;
1394
+ getTarget(): string | HTMLElement;
1395
1395
  /**
1396
1396
  * Get the DOM element into which this map is rendered. In contrast to
1397
1397
  * `getTarget` this method always return an `Element`, or `null` if the
@@ -1543,7 +1543,7 @@ declare class VMap {
1543
1543
  * @param {UIEvent} browserEvent Browser event.
1544
1544
  * @param {string} [type] Type.
1545
1545
  */
1546
- handleBrowserEvent(browserEvent: UIEvent, type?: string | undefined): void;
1546
+ handleBrowserEvent(browserEvent: UIEvent, type?: string): void;
1547
1547
  /**
1548
1548
  * @param {MapBrowserEvent} mapBrowserEvent The event to handle.
1549
1549
  */
@@ -1594,7 +1594,7 @@ declare class VMap {
1594
1594
  * @api
1595
1595
  */
1596
1596
  render(): void;
1597
- animationDelayKey_: number | undefined;
1597
+ animationDelayKey_: number;
1598
1598
  /**
1599
1599
  * Remove the given control from the map.
1600
1600
  * @param {import("./control/Control.js").default} control Control.
@@ -1637,7 +1637,7 @@ declare class VMap {
1637
1637
  * @private
1638
1638
  */
1639
1639
  renderFrame_(time: number): void;
1640
- renderComplete_: boolean | undefined;
1640
+ renderComplete_: boolean;
1641
1641
  postRenderTimeoutHandle_: any;
1642
1642
  /**
1643
1643
  * Sets the layergroup of this map.
@@ -1660,7 +1660,7 @@ declare class VMap {
1660
1660
  * @observable
1661
1661
  * @api
1662
1662
  */
1663
- setTarget(target?: string | HTMLElement | undefined): void;
1663
+ setTarget(target?: string | HTMLElement): void;
1664
1664
  /**
1665
1665
  * Set the view for this map.
1666
1666
  * @param {View|Promise<import("./View.js").ViewOptions>} view The view that controls this map.
@@ -1683,7 +1683,7 @@ declare class VMap {
1683
1683
  * @private
1684
1684
  */
1685
1685
  updateViewportSize_(size2: any): void;
1686
- values_: {} | null;
1686
+ values_: {};
1687
1687
  /**
1688
1688
  * Gets a value.
1689
1689
  * @param {string} key Key name.
@@ -1711,7 +1711,7 @@ declare class VMap {
1711
1711
  */
1712
1712
  getPropertiesInternal(): {
1713
1713
  [x: string]: any;
1714
- } | null;
1714
+ };
1715
1715
  /**
1716
1716
  * @return {boolean} The object has properties.
1717
1717
  */
@@ -1738,7 +1738,7 @@ declare class VMap {
1738
1738
  * @param {boolean} [silent] Update without triggering an event.
1739
1739
  * @api
1740
1740
  */
1741
- set(key: string, value: any, silent?: boolean | undefined): void;
1741
+ set(key: string, value: any, silent?: boolean): void;
1742
1742
  /**
1743
1743
  * Sets a collection of key-value pairs. Note that this changes any existing
1744
1744
  * properties and adds new ones (it does not remove any existing properties).
@@ -1748,7 +1748,7 @@ declare class VMap {
1748
1748
  */
1749
1749
  setProperties(values: {
1750
1750
  [x: string]: any;
1751
- }, silent?: boolean | undefined): void;
1751
+ }, silent?: boolean): void;
1752
1752
  /**
1753
1753
  * Apply any properties from another object without triggering events.
1754
1754
  * @param {BaseObject} source The source object.
@@ -1761,7 +1761,7 @@ declare class VMap {
1761
1761
  * @param {boolean} [silent] Unset without triggering an event.
1762
1762
  * @api
1763
1763
  */
1764
- unset(key: string, silent?: boolean | undefined): void;
1764
+ unset(key: string, silent?: boolean): void;
1765
1765
  on: (type: string | string[], listener: (arg0: any) => any) => any;
1766
1766
  once: (type: string | string[], listener: (arg0: any) => any) => any;
1767
1767
  un: (type: string | string[], listener: (arg0: any) => any) => void;
@@ -1800,9 +1800,9 @@ declare class VMap {
1800
1800
  */
1801
1801
  unInternal(type: string | string[], listener: (arg0: any) => any): void;
1802
1802
  eventTarget_: any;
1803
- pendingRemovals_: {} | null;
1804
- dispatching_: {} | null;
1805
- listeners_: {} | null;
1803
+ pendingRemovals_: {};
1804
+ dispatching_: {};
1805
+ listeners_: {};
1806
1806
  /**
1807
1807
  * @param {string} type Type.
1808
1808
  * @param {import("../events.js").Listener} listener Listener.
@@ -1818,7 +1818,7 @@ declare class VMap {
1818
1818
  * event object or if any of the listeners returned false.
1819
1819
  * @api
1820
1820
  */
1821
- dispatchEvent(event: any): boolean | undefined;
1821
+ dispatchEvent(event: any): boolean;
1822
1822
  /**
1823
1823
  * Get the listeners for a specified event type. Listeners are returned in the
1824
1824
  * order that they will be called in.
@@ -1826,13 +1826,13 @@ declare class VMap {
1826
1826
  * @param {string} type Type.
1827
1827
  * @return {Array<import("../events.js").Listener>|undefined} Listeners.
1828
1828
  */
1829
- getListeners(type: string): any[] | undefined;
1829
+ getListeners(type: string): any[];
1830
1830
  /**
1831
1831
  * @param {string} [type] Type. If not provided,
1832
1832
  * `true` will be returned if this event target has any listeners.
1833
1833
  * @return {boolean} Has listeners.
1834
1834
  */
1835
- hasListener(type?: string | undefined): boolean;
1835
+ hasListener(type?: string): boolean;
1836
1836
  /**
1837
1837
  * @param {string} type Type.
1838
1838
  * @param {import("../events.js").Listener} listener Listener.
@@ -1843,7 +1843,7 @@ declare class VMap {
1843
1843
  * Clean up.
1844
1844
  */
1845
1845
  dispose(): void;
1846
- } | null;
1846
+ };
1847
1847
  target: string;
1848
1848
  defaultStyle: Style;
1849
1849
  prj: string;
@@ -1880,9 +1880,9 @@ declare class VMap {
1880
1880
  image: string;
1881
1881
  }[];
1882
1882
  })[];
1883
- businessLayers: never[];
1883
+ businessLayers: any[];
1884
1884
  };
1885
- mapInitExtent: never[] | {
1885
+ mapInitExtent: any[] | {
1886
1886
  center: number[];
1887
1887
  zoom: number;
1888
1888
  minZoom: number;
@@ -1893,26 +1893,26 @@ declare class VMap {
1893
1893
  mouseDbClickHandle: any;
1894
1894
  mouseMoveEndHandle: any;
1895
1895
  mouseStatusKey: string;
1896
- overlay: Overlay | null;
1896
+ overlay: Overlay;
1897
1897
  popupOverlayCollection: any[];
1898
1898
  baseLayerCollection: {};
1899
1899
  isSyncing: boolean;
1900
1900
  cesiumViewer: any;
1901
- highlightLayer: VectorLayer | null;
1901
+ highlightLayer: VectorLayer;
1902
1902
  layerIndex: number;
1903
1903
  dragZoomIns: any;
1904
- drawHandler: DrawHandler | null;
1905
- drawConditions: DrawConditions | null;
1906
- measureHandler: MeasureHandler | null;
1907
- wktHandler: WktHandler | null;
1908
- geojsonHandler: GeojsonHandler | null;
1909
- wfsHandler: WfsHandler | null;
1910
- wmsHandler: WmsHandler | null;
1911
- interactionHandler: InteractionHandler | null;
1912
- layerHandler: LayerHandler | null;
1913
- geometryHandler: GeometryHandler | null;
1904
+ drawHandler: DrawHandler;
1905
+ drawConditions: DrawConditions;
1906
+ measureHandler: MeasureHandler;
1907
+ wktHandler: WktHandler;
1908
+ geojsonHandler: GeojsonHandler;
1909
+ wfsHandler: WfsHandler;
1910
+ wmsHandler: WmsHandler;
1911
+ interactionHandler: InteractionHandler;
1912
+ layerHandler: LayerHandler;
1913
+ geometryHandler: GeometryHandler;
1914
1914
  TransHandler: Readonly<{
1915
- __proto__: null;
1915
+ __proto__: any;
1916
1916
  geojsonToWkt: (geojson2: any) => string;
1917
1917
  tranMeters2Radius: typeof tranMeters2Radius;
1918
1918
  tranRadius2Meters: typeof tranRadius2Meters;
@@ -1920,7 +1920,7 @@ declare class VMap {
1920
1920
  wktToGeojson: (wkt2: any) => GeoJSONFeatureCollection;
1921
1921
  }>;
1922
1922
  StyleHandler: Readonly<{
1923
- __proto__: null;
1923
+ __proto__: any;
1924
1924
  getIconStyle: typeof getIconStyle;
1925
1925
  getStyle: typeof getStyle;
1926
1926
  getSvg: typeof getSvg;
@@ -1938,7 +1938,7 @@ declare class VMap {
1938
1938
  };
1939
1939
  predict(x: any, y: any, variogram: any): any;
1940
1940
  variance(x: any, y: any, variogram: any): any;
1941
- grid(polygons: any, variogram: any, width: any): any[] | undefined;
1941
+ grid(polygons: any, variogram: any, width: any): any[];
1942
1942
  contour(value: any, polygons: any, variogram: any): void;
1943
1943
  plot(canvas: any, grid: any, xlim: any, ylim: any, colors: any): void;
1944
1944
  };
@@ -2001,7 +2001,7 @@ declare class VMap {
2001
2001
  * @param {*} param0
2002
2002
  * @returns overlay
2003
2003
  */
2004
- createOverlay({ popupId, center: center2, html, offset, collection, options: options2 }: any): Overlay | undefined;
2004
+ createOverlay({ popupId, center: center2, html, offset, collection, options: options2 }: any): Overlay;
2005
2005
  /**
2006
2006
  * 删除所有overlay
2007
2007
  */
@@ -2102,7 +2102,7 @@ declare class VMap {
2102
2102
  * @returns TransformHandler
2103
2103
  */
2104
2104
  getTransformHandler(): Readonly<{
2105
- __proto__: null;
2105
+ __proto__: any;
2106
2106
  geojsonToWkt: (geojson2: any) => string;
2107
2107
  tranMeters2Radius: typeof tranMeters2Radius;
2108
2108
  tranRadius2Meters: typeof tranRadius2Meters;
@@ -2119,7 +2119,7 @@ declare class VMap {
2119
2119
  * @returns StyleHandler
2120
2120
  */
2121
2121
  getStyleHandler(): Readonly<{
2122
- __proto__: null;
2122
+ __proto__: any;
2123
2123
  getIconStyle: typeof getIconStyle;
2124
2124
  getStyle: typeof getStyle;
2125
2125
  getSvg: typeof getSvg;
@@ -2130,7 +2130,7 @@ declare class VMap {
2130
2130
  */
2131
2131
  getLayerHandler(map?: {
2132
2132
  loaded_: boolean;
2133
- boundHandleBrowserEvent_: (browserEvent: UIEvent, type?: string | undefined) => void;
2133
+ boundHandleBrowserEvent_: any;
2134
2134
  maxTilesLoading_: any;
2135
2135
  pixelRatio_: any;
2136
2136
  /**
@@ -2143,14 +2143,14 @@ declare class VMap {
2143
2143
  frameState_: {
2144
2144
  animate: boolean;
2145
2145
  coordinateToPixelTransform: number[];
2146
- declutter: null;
2146
+ declutter: any;
2147
2147
  extent: any;
2148
2148
  index: number;
2149
2149
  layerIndex: number;
2150
2150
  layerStatesArray: any[];
2151
2151
  pixelRatio: any;
2152
2152
  pixelToCoordinateTransform: number[];
2153
- postRenderFunctions: never[];
2153
+ postRenderFunctions: any[];
2154
2154
  size: any;
2155
2155
  tileQueue: TileQueue;
2156
2156
  time: number;
@@ -2160,41 +2160,41 @@ declare class VMap {
2160
2160
  wantedTiles: {};
2161
2161
  mapId: any;
2162
2162
  renderTargets: {};
2163
- } | null;
2163
+ };
2164
2164
  previousExtent_: any;
2165
2165
  viewPropertyListenerKey_: {
2166
2166
  target: any;
2167
2167
  type: any;
2168
2168
  listener: any;
2169
- } | null;
2169
+ };
2170
2170
  viewChangeListenerKey_: {
2171
2171
  target: any;
2172
2172
  type: any;
2173
2173
  listener: any;
2174
- } | null;
2174
+ };
2175
2175
  layerGroupPropertyListenerKeys_: {
2176
2176
  target: any;
2177
2177
  type: any;
2178
2178
  listener: any;
2179
- }[] | null;
2179
+ }[];
2180
2180
  viewport_: HTMLDivElement;
2181
2181
  overlayContainer_: HTMLDivElement;
2182
2182
  overlayContainerStopEvent_: HTMLDivElement;
2183
- mapBrowserEventHandler_: MapBrowserEventHandler | null;
2183
+ mapBrowserEventHandler_: MapBrowserEventHandler;
2184
2184
  moveTolerance_: any;
2185
2185
  keyboardEventTarget_: any;
2186
2186
  targetChangeHandlerKeys_: {
2187
2187
  target: any;
2188
2188
  type: any;
2189
2189
  listener: any;
2190
- }[] | null;
2191
- targetElement_: HTMLElement | null | undefined;
2190
+ }[];
2191
+ targetElement_: HTMLElement;
2192
2192
  resizeObserver_: ResizeObserver;
2193
2193
  controls: any;
2194
2194
  interactions: any;
2195
2195
  overlays_: any;
2196
2196
  overlayIdIndex_: {};
2197
- renderer_: CompositeMapRenderer | null;
2197
+ renderer_: CompositeMapRenderer;
2198
2198
  postRenderFunctions_: any[];
2199
2199
  tileQueue_: TileQueue;
2200
2200
  /**
@@ -2261,7 +2261,7 @@ declare class VMap {
2261
2261
  * @template T
2262
2262
  * @api
2263
2263
  */
2264
- forEachFeatureAtPixel<T>(pixel: any, callback: (arg0: any, arg1: any, arg2: any) => T, options2: any): T | undefined;
2264
+ forEachFeatureAtPixel<T>(pixel: any, callback: (arg0: any, arg1: any, arg2: any) => T, options2: any): T;
2265
2265
  /**
2266
2266
  * Get all features that intersect a pixel on the viewport.
2267
2267
  * @param {import("./pixel.js").Pixel} pixel Pixel.
@@ -2318,7 +2318,7 @@ declare class VMap {
2318
2318
  * @observable
2319
2319
  * @api
2320
2320
  */
2321
- getTarget(): string | HTMLElement | undefined;
2321
+ getTarget(): string | HTMLElement;
2322
2322
  /**
2323
2323
  * Get the DOM element into which this map is rendered. In contrast to
2324
2324
  * `getTarget` this method always return an `Element`, or `null` if the
@@ -2470,7 +2470,7 @@ declare class VMap {
2470
2470
  * @param {UIEvent} browserEvent Browser event.
2471
2471
  * @param {string} [type] Type.
2472
2472
  */
2473
- handleBrowserEvent(browserEvent: UIEvent, type?: string | undefined): void;
2473
+ handleBrowserEvent(browserEvent: UIEvent, type?: string): void;
2474
2474
  /**
2475
2475
  * @param {MapBrowserEvent} mapBrowserEvent The event to handle.
2476
2476
  */
@@ -2521,7 +2521,7 @@ declare class VMap {
2521
2521
  * @api
2522
2522
  */
2523
2523
  render(): void;
2524
- animationDelayKey_: number | undefined;
2524
+ animationDelayKey_: number;
2525
2525
  /**
2526
2526
  * Remove the given control from the map.
2527
2527
  * @param {import("./control/Control.js").default} control Control.
@@ -2564,7 +2564,7 @@ declare class VMap {
2564
2564
  * @private
2565
2565
  */
2566
2566
  renderFrame_(time: number): void;
2567
- renderComplete_: boolean | undefined;
2567
+ renderComplete_: boolean;
2568
2568
  postRenderTimeoutHandle_: any;
2569
2569
  /**
2570
2570
  * Sets the layergroup of this map.
@@ -2587,7 +2587,7 @@ declare class VMap {
2587
2587
  * @observable
2588
2588
  * @api
2589
2589
  */
2590
- setTarget(target?: string | HTMLElement | undefined): void;
2590
+ setTarget(target?: string | HTMLElement): void;
2591
2591
  /**
2592
2592
  * Set the view for this map.
2593
2593
  * @param {View|Promise<import("./View.js").ViewOptions>} view The view that controls this map.
@@ -2610,7 +2610,7 @@ declare class VMap {
2610
2610
  * @private
2611
2611
  */
2612
2612
  updateViewportSize_(size2: any): void;
2613
- values_: {} | null;
2613
+ values_: {};
2614
2614
  /**
2615
2615
  * Gets a value.
2616
2616
  * @param {string} key Key name.
@@ -2638,7 +2638,7 @@ declare class VMap {
2638
2638
  */
2639
2639
  getPropertiesInternal(): {
2640
2640
  [x: string]: any;
2641
- } | null;
2641
+ };
2642
2642
  /**
2643
2643
  * @return {boolean} The object has properties.
2644
2644
  */
@@ -2665,7 +2665,7 @@ declare class VMap {
2665
2665
  * @param {boolean} [silent] Update without triggering an event.
2666
2666
  * @api
2667
2667
  */
2668
- set(key: string, value: any, silent?: boolean | undefined): void;
2668
+ set(key: string, value: any, silent?: boolean): void;
2669
2669
  /**
2670
2670
  * Sets a collection of key-value pairs. Note that this changes any existing
2671
2671
  * properties and adds new ones (it does not remove any existing properties).
@@ -2675,7 +2675,7 @@ declare class VMap {
2675
2675
  */
2676
2676
  setProperties(values: {
2677
2677
  [x: string]: any;
2678
- }, silent?: boolean | undefined): void;
2678
+ }, silent?: boolean): void;
2679
2679
  /**
2680
2680
  * Apply any properties from another object without triggering events.
2681
2681
  * @param {BaseObject} source The source object.
@@ -2688,7 +2688,7 @@ declare class VMap {
2688
2688
  * @param {boolean} [silent] Unset without triggering an event.
2689
2689
  * @api
2690
2690
  */
2691
- unset(key: string, silent?: boolean | undefined): void;
2691
+ unset(key: string, silent?: boolean): void;
2692
2692
  on: (type: string | string[], listener: (arg0: any) => any) => any;
2693
2693
  once: (type: string | string[], listener: (arg0: any) => any) => any;
2694
2694
  un: (type: string | string[], listener: (arg0: any) => any) => void;
@@ -2727,9 +2727,9 @@ declare class VMap {
2727
2727
  */
2728
2728
  unInternal(type: string | string[], listener: (arg0: any) => any): void;
2729
2729
  eventTarget_: any;
2730
- pendingRemovals_: {} | null;
2731
- dispatching_: {} | null;
2732
- listeners_: {} | null;
2730
+ pendingRemovals_: {};
2731
+ dispatching_: {};
2732
+ listeners_: {};
2733
2733
  /**
2734
2734
  * @param {string} type Type.
2735
2735
  * @param {import("../events.js").Listener} listener Listener.
@@ -2745,7 +2745,7 @@ declare class VMap {
2745
2745
  * event object or if any of the listeners returned false.
2746
2746
  * @api
2747
2747
  */
2748
- dispatchEvent(event: any): boolean | undefined;
2748
+ dispatchEvent(event: any): boolean;
2749
2749
  /**
2750
2750
  * Get the listeners for a specified event type. Listeners are returned in the
2751
2751
  * order that they will be called in.
@@ -2753,13 +2753,13 @@ declare class VMap {
2753
2753
  * @param {string} type Type.
2754
2754
  * @return {Array<import("../events.js").Listener>|undefined} Listeners.
2755
2755
  */
2756
- getListeners(type: string): any[] | undefined;
2756
+ getListeners(type: string): any[];
2757
2757
  /**
2758
2758
  * @param {string} [type] Type. If not provided,
2759
2759
  * `true` will be returned if this event target has any listeners.
2760
2760
  * @return {boolean} Has listeners.
2761
2761
  */
2762
- hasListener(type?: string | undefined): boolean;
2762
+ hasListener(type?: string): boolean;
2763
2763
  /**
2764
2764
  * @param {string} type Type.
2765
2765
  * @param {import("../events.js").Listener} listener Listener.
@@ -2770,14 +2770,14 @@ declare class VMap {
2770
2770
  * Clean up.
2771
2771
  */
2772
2772
  dispose(): void;
2773
- } | null): LayerHandler;
2773
+ }): LayerHandler;
2774
2774
  /**
2775
2775
  * 获取测量工具实例
2776
2776
  * @returns measureHandler
2777
2777
  */
2778
2778
  getMeasureHandler(map?: {
2779
2779
  loaded_: boolean;
2780
- boundHandleBrowserEvent_: (browserEvent: UIEvent, type?: string | undefined) => void;
2780
+ boundHandleBrowserEvent_: any;
2781
2781
  maxTilesLoading_: any;
2782
2782
  pixelRatio_: any;
2783
2783
  /**
@@ -2790,14 +2790,14 @@ declare class VMap {
2790
2790
  frameState_: {
2791
2791
  animate: boolean;
2792
2792
  coordinateToPixelTransform: number[];
2793
- declutter: null;
2793
+ declutter: any;
2794
2794
  extent: any;
2795
2795
  index: number;
2796
2796
  layerIndex: number;
2797
2797
  layerStatesArray: any[];
2798
2798
  pixelRatio: any;
2799
2799
  pixelToCoordinateTransform: number[];
2800
- postRenderFunctions: never[];
2800
+ postRenderFunctions: any[];
2801
2801
  size: any;
2802
2802
  tileQueue: TileQueue;
2803
2803
  time: number;
@@ -2807,41 +2807,41 @@ declare class VMap {
2807
2807
  wantedTiles: {};
2808
2808
  mapId: any;
2809
2809
  renderTargets: {};
2810
- } | null;
2810
+ };
2811
2811
  previousExtent_: any;
2812
2812
  viewPropertyListenerKey_: {
2813
2813
  target: any;
2814
2814
  type: any;
2815
2815
  listener: any;
2816
- } | null;
2816
+ };
2817
2817
  viewChangeListenerKey_: {
2818
2818
  target: any;
2819
2819
  type: any;
2820
2820
  listener: any;
2821
- } | null;
2821
+ };
2822
2822
  layerGroupPropertyListenerKeys_: {
2823
2823
  target: any;
2824
2824
  type: any;
2825
2825
  listener: any;
2826
- }[] | null;
2826
+ }[];
2827
2827
  viewport_: HTMLDivElement;
2828
2828
  overlayContainer_: HTMLDivElement;
2829
2829
  overlayContainerStopEvent_: HTMLDivElement;
2830
- mapBrowserEventHandler_: MapBrowserEventHandler | null;
2830
+ mapBrowserEventHandler_: MapBrowserEventHandler;
2831
2831
  moveTolerance_: any;
2832
2832
  keyboardEventTarget_: any;
2833
2833
  targetChangeHandlerKeys_: {
2834
2834
  target: any;
2835
2835
  type: any;
2836
2836
  listener: any;
2837
- }[] | null;
2838
- targetElement_: HTMLElement | null | undefined;
2837
+ }[];
2838
+ targetElement_: HTMLElement;
2839
2839
  resizeObserver_: ResizeObserver;
2840
2840
  controls: any;
2841
2841
  interactions: any;
2842
2842
  overlays_: any;
2843
2843
  overlayIdIndex_: {};
2844
- renderer_: CompositeMapRenderer | null;
2844
+ renderer_: CompositeMapRenderer;
2845
2845
  postRenderFunctions_: any[];
2846
2846
  tileQueue_: TileQueue;
2847
2847
  /**
@@ -2908,7 +2908,7 @@ declare class VMap {
2908
2908
  * @template T
2909
2909
  * @api
2910
2910
  */
2911
- forEachFeatureAtPixel<T>(pixel: any, callback: (arg0: any, arg1: any, arg2: any) => T, options2: any): T | undefined;
2911
+ forEachFeatureAtPixel<T>(pixel: any, callback: (arg0: any, arg1: any, arg2: any) => T, options2: any): T;
2912
2912
  /**
2913
2913
  * Get all features that intersect a pixel on the viewport.
2914
2914
  * @param {import("./pixel.js").Pixel} pixel Pixel.
@@ -2965,7 +2965,7 @@ declare class VMap {
2965
2965
  * @observable
2966
2966
  * @api
2967
2967
  */
2968
- getTarget(): string | HTMLElement | undefined;
2968
+ getTarget(): string | HTMLElement;
2969
2969
  /**
2970
2970
  * Get the DOM element into which this map is rendered. In contrast to
2971
2971
  * `getTarget` this method always return an `Element`, or `null` if the
@@ -3117,7 +3117,7 @@ declare class VMap {
3117
3117
  * @param {UIEvent} browserEvent Browser event.
3118
3118
  * @param {string} [type] Type.
3119
3119
  */
3120
- handleBrowserEvent(browserEvent: UIEvent, type?: string | undefined): void;
3120
+ handleBrowserEvent(browserEvent: UIEvent, type?: string): void;
3121
3121
  /**
3122
3122
  * @param {MapBrowserEvent} mapBrowserEvent The event to handle.
3123
3123
  */
@@ -3168,7 +3168,7 @@ declare class VMap {
3168
3168
  * @api
3169
3169
  */
3170
3170
  render(): void;
3171
- animationDelayKey_: number | undefined;
3171
+ animationDelayKey_: number;
3172
3172
  /**
3173
3173
  * Remove the given control from the map.
3174
3174
  * @param {import("./control/Control.js").default} control Control.
@@ -3211,7 +3211,7 @@ declare class VMap {
3211
3211
  * @private
3212
3212
  */
3213
3213
  renderFrame_(time: number): void;
3214
- renderComplete_: boolean | undefined;
3214
+ renderComplete_: boolean;
3215
3215
  postRenderTimeoutHandle_: any;
3216
3216
  /**
3217
3217
  * Sets the layergroup of this map.
@@ -3234,7 +3234,7 @@ declare class VMap {
3234
3234
  * @observable
3235
3235
  * @api
3236
3236
  */
3237
- setTarget(target?: string | HTMLElement | undefined): void;
3237
+ setTarget(target?: string | HTMLElement): void;
3238
3238
  /**
3239
3239
  * Set the view for this map.
3240
3240
  * @param {View|Promise<import("./View.js").ViewOptions>} view The view that controls this map.
@@ -3257,7 +3257,7 @@ declare class VMap {
3257
3257
  * @private
3258
3258
  */
3259
3259
  updateViewportSize_(size2: any): void;
3260
- values_: {} | null;
3260
+ values_: {};
3261
3261
  /**
3262
3262
  * Gets a value.
3263
3263
  * @param {string} key Key name.
@@ -3285,7 +3285,7 @@ declare class VMap {
3285
3285
  */
3286
3286
  getPropertiesInternal(): {
3287
3287
  [x: string]: any;
3288
- } | null;
3288
+ };
3289
3289
  /**
3290
3290
  * @return {boolean} The object has properties.
3291
3291
  */
@@ -3312,7 +3312,7 @@ declare class VMap {
3312
3312
  * @param {boolean} [silent] Update without triggering an event.
3313
3313
  * @api
3314
3314
  */
3315
- set(key: string, value: any, silent?: boolean | undefined): void;
3315
+ set(key: string, value: any, silent?: boolean): void;
3316
3316
  /**
3317
3317
  * Sets a collection of key-value pairs. Note that this changes any existing
3318
3318
  * properties and adds new ones (it does not remove any existing properties).
@@ -3322,7 +3322,7 @@ declare class VMap {
3322
3322
  */
3323
3323
  setProperties(values: {
3324
3324
  [x: string]: any;
3325
- }, silent?: boolean | undefined): void;
3325
+ }, silent?: boolean): void;
3326
3326
  /**
3327
3327
  * Apply any properties from another object without triggering events.
3328
3328
  * @param {BaseObject} source The source object.
@@ -3335,7 +3335,7 @@ declare class VMap {
3335
3335
  * @param {boolean} [silent] Unset without triggering an event.
3336
3336
  * @api
3337
3337
  */
3338
- unset(key: string, silent?: boolean | undefined): void;
3338
+ unset(key: string, silent?: boolean): void;
3339
3339
  on: (type: string | string[], listener: (arg0: any) => any) => any;
3340
3340
  once: (type: string | string[], listener: (arg0: any) => any) => any;
3341
3341
  un: (type: string | string[], listener: (arg0: any) => any) => void;
@@ -3374,9 +3374,9 @@ declare class VMap {
3374
3374
  */
3375
3375
  unInternal(type: string | string[], listener: (arg0: any) => any): void;
3376
3376
  eventTarget_: any;
3377
- pendingRemovals_: {} | null;
3378
- dispatching_: {} | null;
3379
- listeners_: {} | null;
3377
+ pendingRemovals_: {};
3378
+ dispatching_: {};
3379
+ listeners_: {};
3380
3380
  /**
3381
3381
  * @param {string} type Type.
3382
3382
  * @param {import("../events.js").Listener} listener Listener.
@@ -3392,7 +3392,7 @@ declare class VMap {
3392
3392
  * event object or if any of the listeners returned false.
3393
3393
  * @api
3394
3394
  */
3395
- dispatchEvent(event: any): boolean | undefined;
3395
+ dispatchEvent(event: any): boolean;
3396
3396
  /**
3397
3397
  * Get the listeners for a specified event type. Listeners are returned in the
3398
3398
  * order that they will be called in.
@@ -3400,13 +3400,13 @@ declare class VMap {
3400
3400
  * @param {string} type Type.
3401
3401
  * @return {Array<import("../events.js").Listener>|undefined} Listeners.
3402
3402
  */
3403
- getListeners(type: string): any[] | undefined;
3403
+ getListeners(type: string): any[];
3404
3404
  /**
3405
3405
  * @param {string} [type] Type. If not provided,
3406
3406
  * `true` will be returned if this event target has any listeners.
3407
3407
  * @return {boolean} Has listeners.
3408
3408
  */
3409
- hasListener(type?: string | undefined): boolean;
3409
+ hasListener(type?: string): boolean;
3410
3410
  /**
3411
3411
  * @param {string} type Type.
3412
3412
  * @param {import("../events.js").Listener} listener Listener.
@@ -3417,7 +3417,7 @@ declare class VMap {
3417
3417
  * Clean up.
3418
3418
  */
3419
3419
  dispose(): void;
3420
- } | null): MeasureHandler;
3420
+ }): MeasureHandler;
3421
3421
  /**
3422
3422
  * 获取绘制工具实例
3423
3423
  * @param {*} map 地图对象
@@ -3488,7 +3488,7 @@ declare class VMap {
3488
3488
  */
3489
3489
  getExtent(map?: {
3490
3490
  loaded_: boolean;
3491
- boundHandleBrowserEvent_: (browserEvent: UIEvent, type?: string | undefined) => void;
3491
+ boundHandleBrowserEvent_: any;
3492
3492
  maxTilesLoading_: any;
3493
3493
  pixelRatio_: any;
3494
3494
  /**
@@ -3501,14 +3501,14 @@ declare class VMap {
3501
3501
  frameState_: {
3502
3502
  animate: boolean;
3503
3503
  coordinateToPixelTransform: number[];
3504
- declutter: null;
3504
+ declutter: any;
3505
3505
  extent: any;
3506
3506
  index: number;
3507
3507
  layerIndex: number;
3508
3508
  layerStatesArray: any[];
3509
3509
  pixelRatio: any;
3510
3510
  pixelToCoordinateTransform: number[];
3511
- postRenderFunctions: never[];
3511
+ postRenderFunctions: any[];
3512
3512
  size: any;
3513
3513
  tileQueue: TileQueue;
3514
3514
  time: number;
@@ -3518,41 +3518,41 @@ declare class VMap {
3518
3518
  wantedTiles: {};
3519
3519
  mapId: any;
3520
3520
  renderTargets: {};
3521
- } | null;
3521
+ };
3522
3522
  previousExtent_: any;
3523
3523
  viewPropertyListenerKey_: {
3524
3524
  target: any;
3525
3525
  type: any;
3526
3526
  listener: any;
3527
- } | null;
3527
+ };
3528
3528
  viewChangeListenerKey_: {
3529
3529
  target: any;
3530
3530
  type: any;
3531
3531
  listener: any;
3532
- } | null;
3532
+ };
3533
3533
  layerGroupPropertyListenerKeys_: {
3534
3534
  target: any;
3535
3535
  type: any;
3536
3536
  listener: any;
3537
- }[] | null;
3537
+ }[];
3538
3538
  viewport_: HTMLDivElement;
3539
3539
  overlayContainer_: HTMLDivElement;
3540
3540
  overlayContainerStopEvent_: HTMLDivElement;
3541
- mapBrowserEventHandler_: MapBrowserEventHandler | null;
3541
+ mapBrowserEventHandler_: MapBrowserEventHandler;
3542
3542
  moveTolerance_: any;
3543
3543
  keyboardEventTarget_: any;
3544
3544
  targetChangeHandlerKeys_: {
3545
3545
  target: any;
3546
3546
  type: any;
3547
3547
  listener: any;
3548
- }[] | null;
3549
- targetElement_: HTMLElement | null | undefined;
3548
+ }[];
3549
+ targetElement_: HTMLElement;
3550
3550
  resizeObserver_: ResizeObserver;
3551
3551
  controls: any;
3552
3552
  interactions: any;
3553
3553
  overlays_: any;
3554
3554
  overlayIdIndex_: {};
3555
- renderer_: CompositeMapRenderer | null;
3555
+ renderer_: CompositeMapRenderer;
3556
3556
  postRenderFunctions_: any[];
3557
3557
  tileQueue_: TileQueue;
3558
3558
  /**
@@ -3619,7 +3619,7 @@ declare class VMap {
3619
3619
  * @template T
3620
3620
  * @api
3621
3621
  */
3622
- forEachFeatureAtPixel<T>(pixel: any, callback: (arg0: any, arg1: any, arg2: any) => T, options2: any): T | undefined;
3622
+ forEachFeatureAtPixel<T>(pixel: any, callback: (arg0: any, arg1: any, arg2: any) => T, options2: any): T;
3623
3623
  /**
3624
3624
  * Get all features that intersect a pixel on the viewport.
3625
3625
  * @param {import("./pixel.js").Pixel} pixel Pixel.
@@ -3676,7 +3676,7 @@ declare class VMap {
3676
3676
  * @observable
3677
3677
  * @api
3678
3678
  */
3679
- getTarget(): string | HTMLElement | undefined;
3679
+ getTarget(): string | HTMLElement;
3680
3680
  /**
3681
3681
  * Get the DOM element into which this map is rendered. In contrast to
3682
3682
  * `getTarget` this method always return an `Element`, or `null` if the
@@ -3828,7 +3828,7 @@ declare class VMap {
3828
3828
  * @param {UIEvent} browserEvent Browser event.
3829
3829
  * @param {string} [type] Type.
3830
3830
  */
3831
- handleBrowserEvent(browserEvent: UIEvent, type?: string | undefined): void;
3831
+ handleBrowserEvent(browserEvent: UIEvent, type?: string): void;
3832
3832
  /**
3833
3833
  * @param {MapBrowserEvent} mapBrowserEvent The event to handle.
3834
3834
  */
@@ -3879,7 +3879,7 @@ declare class VMap {
3879
3879
  * @api
3880
3880
  */
3881
3881
  render(): void;
3882
- animationDelayKey_: number | undefined;
3882
+ animationDelayKey_: number;
3883
3883
  /**
3884
3884
  * Remove the given control from the map.
3885
3885
  * @param {import("./control/Control.js").default} control Control.
@@ -3922,7 +3922,7 @@ declare class VMap {
3922
3922
  * @private
3923
3923
  */
3924
3924
  renderFrame_(time: number): void;
3925
- renderComplete_: boolean | undefined;
3925
+ renderComplete_: boolean;
3926
3926
  postRenderTimeoutHandle_: any;
3927
3927
  /**
3928
3928
  * Sets the layergroup of this map.
@@ -3945,7 +3945,7 @@ declare class VMap {
3945
3945
  * @observable
3946
3946
  * @api
3947
3947
  */
3948
- setTarget(target?: string | HTMLElement | undefined): void;
3948
+ setTarget(target?: string | HTMLElement): void;
3949
3949
  /**
3950
3950
  * Set the view for this map.
3951
3951
  * @param {View|Promise<import("./View.js").ViewOptions>} view The view that controls this map.
@@ -3968,7 +3968,7 @@ declare class VMap {
3968
3968
  * @private
3969
3969
  */
3970
3970
  updateViewportSize_(size2: any): void;
3971
- values_: {} | null;
3971
+ values_: {};
3972
3972
  /**
3973
3973
  * Gets a value.
3974
3974
  * @param {string} key Key name.
@@ -3996,7 +3996,7 @@ declare class VMap {
3996
3996
  */
3997
3997
  getPropertiesInternal(): {
3998
3998
  [x: string]: any;
3999
- } | null;
3999
+ };
4000
4000
  /**
4001
4001
  * @return {boolean} The object has properties.
4002
4002
  */
@@ -4023,7 +4023,7 @@ declare class VMap {
4023
4023
  * @param {boolean} [silent] Update without triggering an event.
4024
4024
  * @api
4025
4025
  */
4026
- set(key: string, value: any, silent?: boolean | undefined): void;
4026
+ set(key: string, value: any, silent?: boolean): void;
4027
4027
  /**
4028
4028
  * Sets a collection of key-value pairs. Note that this changes any existing
4029
4029
  * properties and adds new ones (it does not remove any existing properties).
@@ -4033,7 +4033,7 @@ declare class VMap {
4033
4033
  */
4034
4034
  setProperties(values: {
4035
4035
  [x: string]: any;
4036
- }, silent?: boolean | undefined): void;
4036
+ }, silent?: boolean): void;
4037
4037
  /**
4038
4038
  * Apply any properties from another object without triggering events.
4039
4039
  * @param {BaseObject} source The source object.
@@ -4046,7 +4046,7 @@ declare class VMap {
4046
4046
  * @param {boolean} [silent] Unset without triggering an event.
4047
4047
  * @api
4048
4048
  */
4049
- unset(key: string, silent?: boolean | undefined): void;
4049
+ unset(key: string, silent?: boolean): void;
4050
4050
  on: (type: string | string[], listener: (arg0: any) => any) => any;
4051
4051
  once: (type: string | string[], listener: (arg0: any) => any) => any;
4052
4052
  un: (type: string | string[], listener: (arg0: any) => any) => void;
@@ -4085,9 +4085,9 @@ declare class VMap {
4085
4085
  */
4086
4086
  unInternal(type: string | string[], listener: (arg0: any) => any): void;
4087
4087
  eventTarget_: any;
4088
- pendingRemovals_: {} | null;
4089
- dispatching_: {} | null;
4090
- listeners_: {} | null;
4088
+ pendingRemovals_: {};
4089
+ dispatching_: {};
4090
+ listeners_: {};
4091
4091
  /**
4092
4092
  * @param {string} type Type.
4093
4093
  * @param {import("../events.js").Listener} listener Listener.
@@ -4103,7 +4103,7 @@ declare class VMap {
4103
4103
  * event object or if any of the listeners returned false.
4104
4104
  * @api
4105
4105
  */
4106
- dispatchEvent(event: any): boolean | undefined;
4106
+ dispatchEvent(event: any): boolean;
4107
4107
  /**
4108
4108
  * Get the listeners for a specified event type. Listeners are returned in the
4109
4109
  * order that they will be called in.
@@ -4111,13 +4111,13 @@ declare class VMap {
4111
4111
  * @param {string} type Type.
4112
4112
  * @return {Array<import("../events.js").Listener>|undefined} Listeners.
4113
4113
  */
4114
- getListeners(type: string): any[] | undefined;
4114
+ getListeners(type: string): any[];
4115
4115
  /**
4116
4116
  * @param {string} [type] Type. If not provided,
4117
4117
  * `true` will be returned if this event target has any listeners.
4118
4118
  * @return {boolean} Has listeners.
4119
4119
  */
4120
- hasListener(type?: string | undefined): boolean;
4120
+ hasListener(type?: string): boolean;
4121
4121
  /**
4122
4122
  * @param {string} type Type.
4123
4123
  * @param {import("../events.js").Listener} listener Listener.
@@ -4128,7 +4128,7 @@ declare class VMap {
4128
4128
  * Clean up.
4129
4129
  */
4130
4130
  dispose(): void;
4131
- } | null): typeof center;
4131
+ }): typeof center;
4132
4132
  /**
4133
4133
  * 视图范围初始化
4134
4134
  */
@@ -4151,6 +4151,11 @@ declare class VMap {
4151
4151
  * @param {*} options 可选参数 {duration: 1000, minResolution: 0, maxZoom: 18}
4152
4152
  */
4153
4153
  zoomToGeometry(geometry: any, options2?: {}): void;
4154
+ /**
4155
+ * 缩放到集合对象
4156
+ * @param {*} obj geometry | WKT | GeoJSON
4157
+ */
4158
+ zoomToObject(obj: any, options2?: {}): void;
4154
4159
  /**
4155
4160
  * 缩放到图层
4156
4161
  * @param {*} id 图层id
@@ -4174,7 +4179,7 @@ declare class VMap {
4174
4179
  * @param {*} layers 图层数组
4175
4180
  * @returns 范围 [minX,minY,maxX,maxY]
4176
4181
  */
4177
- getLayersExtent(layers?: any): number[] | null;
4182
+ getLayersExtent(layers?: any): number[];
4178
4183
  /**
4179
4184
  * 高亮几何对象
4180
4185
  * @param {*} geometry 几何对象 WKT|GeoJSON
@@ -4188,7 +4193,7 @@ declare class VMap {
4188
4193
  * @param {*} style 可选参数 style
4189
4194
  * @returns 高亮图层
4190
4195
  */
4191
- highlight(geom: any, style?: any): VectorLayer | null;
4196
+ highlight(geom: any, style?: any): VectorLayer;
4192
4197
  /**
4193
4198
  * 高亮几何对象
4194
4199
  * @param {*} features 几何对象数组
@@ -4213,13 +4218,13 @@ declare class VMap {
4213
4218
  fly2extent(extent: any, options2?: {}): void;
4214
4219
  /**
4215
4220
  * 获取面中心点坐标
4216
- * @param {*} polygon 面几何对象
4221
+ * @param {*} polygon 面几何对象 Polygon|WKT|GeoJSON
4217
4222
  * @returns 中心点坐标 [x,y]
4218
4223
  */
4219
- getCenterByPolygon(polygon2: any): number[];
4224
+ getCenterByPolygon(polygon2: any): any;
4220
4225
  /**
4221
4226
  * 获取线中心点
4222
- * @param {*} linestring 线几何对象
4227
+ * @param {*} linestring 几何对象 LineString|WKT|GeoJSON
4223
4228
  * @returns 线几何对象中心点坐标 [x,y]
4224
4229
  */
4225
4230
  getCenterByLinestring(linestring: any): any;
@@ -4233,17 +4238,24 @@ declare class VMap {
4233
4238
  /**
4234
4239
  * 计算面积
4235
4240
  * @param {*} layer 面图层
4236
- * @param {*} projection 投影坐标系
4241
+ * @param {*} projection 投影坐标系 默认EPSG:4326
4237
4242
  * @returns 面图层面积(单位:平方公里)
4238
4243
  */
4239
4244
  getAreaByLayer(layer: any, projection2?: string): number;
4240
4245
  /**
4241
4246
  * 计算面积
4242
- * @param {*} polygon wkt | geojson
4243
- * @param {*} projection EPSG:4326
4247
+ * @param {*} polygon 面几何对象 Polygon|WKT|GeoJSON
4248
+ * @param {*} projection 投影坐标系 默认EPSG:4326
4244
4249
  * @returns 面积(单位:平方公里)
4245
4250
  */
4246
4251
  getAreaByPolygon(polygon2: any, projection2?: string): number;
4252
+ /**
4253
+ * 计算长度
4254
+ * @param {*} linestring 线几何对象 LineString|WKT|GeoJSON
4255
+ * @param {*} projection 投影坐标系 默认EPSG:4326
4256
+ * @returns 长度(单位:米)
4257
+ */
4258
+ getLengthByLinestring(linestring: any, projection2?: string): number;
4247
4259
  /**
4248
4260
  * @description: 清理资源
4249
4261
  */
@@ -4255,7 +4267,7 @@ declare class TileQueue extends PriorityQueue {
4255
4267
  * @param {function(): ?} tileChangeCallback Function called on each tile change event.
4256
4268
  */
4257
4269
  constructor(tilePriorityFunction: PriorityFunction, tileChangeCallback: () => unknown);
4258
- boundHandleTileChange_: (event: any) => void;
4270
+ boundHandleTileChange_: any;
4259
4271
  tileChangeCallback_: () => unknown;
4260
4272
  tilesLoading_: number;
4261
4273
  tilesLoadingKeys_: {};
@@ -4279,13 +4291,13 @@ declare class MapBrowserEventHandler extends Target {
4279
4291
  * @param {import("./Map.js").default} map The map with the viewport to listen to events on.
4280
4292
  * @param {number} [moveTolerance] The minimal distance the pointer must travel to trigger a move.
4281
4293
  */
4282
- constructor(map: any, moveTolerance?: number | undefined);
4294
+ constructor(map: any, moveTolerance?: number);
4283
4295
  map_: any;
4284
4296
  emulateClicks_: boolean;
4285
4297
  dragging_: boolean;
4286
4298
  dragListenerKeys_: any[];
4287
4299
  moveTolerance_: number;
4288
- down_: PointerEvent | null;
4300
+ down_: PointerEvent;
4289
4301
  activePointers_: any[];
4290
4302
  trackedTouches_: {};
4291
4303
  element_: any;
@@ -4299,7 +4311,7 @@ declare class MapBrowserEventHandler extends Target {
4299
4311
  type: any;
4300
4312
  listener: any;
4301
4313
  };
4302
- boundHandleTouchMove_: (event: TouchEvent) => void;
4314
+ boundHandleTouchMove_: any;
4303
4315
  /**
4304
4316
  * @param {PointerEvent} pointerEvent Pointer
4305
4317
  * event.
@@ -4347,7 +4359,7 @@ declare class MapBrowserEventHandler extends Target {
4347
4359
  * @private
4348
4360
  */
4349
4361
  private relayMoveEvent_;
4350
- originalPointerMoveEvent_: PointerEvent | undefined;
4362
+ originalPointerMoveEvent_: PointerEvent;
4351
4363
  /**
4352
4364
  * Flexible handling of a `touch-action: none` css equivalent: because calling
4353
4365
  * `preventDefault()` on a `pointermove` event does not stop native page scrolling
@@ -4458,8 +4470,8 @@ declare class View extends BaseObject {
4458
4470
  center: (center2: any, resolution: any, size2: any, isMoving: any, centerShift: any) => any;
4459
4471
  resolution: (resolution: any, direction: any, size2: any, isMoving: any) => any;
4460
4472
  rotation: (rotation: any, isMoving: any) => any;
4461
- } | undefined;
4462
- set padding(arg: number[] | undefined);
4473
+ };
4474
+ set padding(arg: number[]);
4463
4475
  /**
4464
4476
  * Padding (in css pixels).
4465
4477
  * If the map viewport is partially covered with other content (overlays) along
@@ -4469,7 +4481,7 @@ declare class View extends BaseObject {
4469
4481
  * @type {Array<number>|undefined}
4470
4482
  * @api
4471
4483
  */
4472
- get padding(): number[] | undefined;
4484
+ get padding(): number[];
4473
4485
  /**
4474
4486
  * Get an updated version of the view options used to construct the view. The
4475
4487
  * current resolution (or zoom), center, and rotation are applied to any stored
@@ -4543,7 +4555,7 @@ declare class View extends BaseObject {
4543
4555
  updateAnimations_(): void;
4544
4556
  targetResolution_: any;
4545
4557
  targetRotation_: any;
4546
- updateAnimationKey_: number | undefined;
4558
+ updateAnimationKey_: number;
4547
4559
  /**
4548
4560
  * @param {number} rotation Target rotation.
4549
4561
  * @param {import("./coordinate.js").Coordinate} anchor Rotation anchor.
@@ -4595,7 +4607,7 @@ declare class View extends BaseObject {
4595
4607
  * @param {Array<number>} [hints] Destination array.
4596
4608
  * @return {Array<number>} Hint.
4597
4609
  */
4598
- getHints(hints?: number[] | undefined): Array<number>;
4610
+ getHints(hints?: Array<number>): Array<number>;
4599
4611
  /**
4600
4612
  * Calculate the extent for the current view state and the passed box size.
4601
4613
  * @param {import("./size.js").Size} [size] The pixel dimensions of the box
@@ -4698,7 +4710,7 @@ declare class View extends BaseObject {
4698
4710
  * @param {number} [power] Power.
4699
4711
  * @return {function(number): number} Resolution for value function.
4700
4712
  */
4701
- getResolutionForValueFunction(power?: number | undefined): (arg0: number) => number;
4713
+ getResolutionForValueFunction(power?: number): (arg0: number) => number;
4702
4714
  /**
4703
4715
  * Get the view rotation.
4704
4716
  * @return {number} The rotation of the view in radians.
@@ -4712,7 +4724,7 @@ declare class View extends BaseObject {
4712
4724
  * @param {number} [power] Power.
4713
4725
  * @return {function(number): number} Value for resolution function.
4714
4726
  */
4715
- getValueForResolutionFunction(power?: number | undefined): (arg0: number) => number;
4727
+ getValueForResolutionFunction(power?: number): (arg0: number) => number;
4716
4728
  /**
4717
4729
  * Returns the size of the viewport minus padding.
4718
4730
  * @private
@@ -4902,7 +4914,7 @@ declare class View extends BaseObject {
4902
4914
  * @param {number} [resolutionDirection] Which direction to zoom.
4903
4915
  * @param {import("./coordinate.js").Coordinate} [anchor] The origin of the transformation.
4904
4916
  */
4905
- resolveConstraints(duration?: number | undefined, resolutionDirection?: number | undefined, anchor?: any): void;
4917
+ resolveConstraints(duration?: number, resolutionDirection?: number, anchor?: any): void;
4906
4918
  /**
4907
4919
  * Notify the View that an interaction has started.
4908
4920
  * The view state will be resolved to a stable one if needed
@@ -4918,7 +4930,7 @@ declare class View extends BaseObject {
4918
4930
  * @param {import("./coordinate.js").Coordinate} [anchor] The origin of the transformation.
4919
4931
  * @api
4920
4932
  */
4921
- endInteraction(duration?: number | undefined, resolutionDirection?: number | undefined, anchor?: any): void;
4933
+ endInteraction(duration?: number, resolutionDirection?: number, anchor?: any): void;
4922
4934
  /**
4923
4935
  * Notify the View that an interaction has ended. The view state will be resolved
4924
4936
  * to a stable one if needed (depending on its constraints).
@@ -4926,7 +4938,7 @@ declare class View extends BaseObject {
4926
4938
  * @param {number} [resolutionDirection] Which direction to zoom.
4927
4939
  * @param {import("./coordinate.js").Coordinate} [anchor] The origin of the transformation.
4928
4940
  */
4929
- endInteractionInternal(duration?: number | undefined, resolutionDirection?: number | undefined, anchor?: any): void;
4941
+ endInteractionInternal(duration?: number, resolutionDirection?: number, anchor?: any): void;
4930
4942
  /**
4931
4943
  * Get a valid position for the view center according to the current constraints.
4932
4944
  * @param {import("./coordinate.js").Coordinate|undefined} targetCenter Target center position.
@@ -4934,7 +4946,7 @@ declare class View extends BaseObject {
4934
4946
  * This is useful to guess a valid center position at a different zoom level.
4935
4947
  * @return {import("./coordinate.js").Coordinate|undefined} Valid center position.
4936
4948
  */
4937
- getConstrainedCenter(targetCenter: any | undefined, targetResolution?: number | undefined): any | undefined;
4949
+ getConstrainedCenter(targetCenter: any | undefined, targetResolution?: number): any | undefined;
4938
4950
  /**
4939
4951
  * Get a valid zoom level according to the current view constraints.
4940
4952
  * @param {number|undefined} targetZoom Target zoom.
@@ -4944,7 +4956,7 @@ declare class View extends BaseObject {
4944
4956
  * will be used. If -1, the nearest higher resolution will be used.
4945
4957
  * @return {number|undefined} Valid zoom level.
4946
4958
  */
4947
- getConstrainedZoom(targetZoom: number | undefined, direction?: number | undefined): number | undefined;
4959
+ getConstrainedZoom(targetZoom: number | undefined, direction?: number): number | undefined;
4948
4960
  /**
4949
4961
  * Get a valid resolution according to the current view constraints.
4950
4962
  * @param {number|undefined} targetResolution Target resolution.
@@ -4954,7 +4966,7 @@ declare class View extends BaseObject {
4954
4966
  * will be used. If -1, the nearest higher resolution will be used.
4955
4967
  * @return {number|undefined} Valid resolution.
4956
4968
  */
4957
- getConstrainedResolution(targetResolution: number | undefined, direction?: number | undefined): number | undefined;
4969
+ getConstrainedResolution(targetResolution: number | undefined, direction?: number): number | undefined;
4958
4970
  }
4959
4971
  declare class MapBrowserEvent extends MapEvent {
4960
4972
  /**
@@ -4965,12 +4977,12 @@ declare class MapBrowserEvent extends MapEvent {
4965
4977
  * @param {import("./Map.js").FrameState} [frameState] Frame state.
4966
4978
  * @param {Array<PointerEvent>} [activePointers] Active pointers.
4967
4979
  */
4968
- constructor(type: string, map: any, originalEvent: EVENT, dragging?: boolean | undefined, frameState?: any, activePointers?: PointerEvent[] | undefined);
4980
+ constructor(type: string, map: any, originalEvent: EVENT, dragging?: boolean, frameState?: any, activePointers?: Array<PointerEvent>);
4969
4981
  originalEvent: EVENT;
4970
4982
  pixel_: any;
4971
4983
  coordinate_: any;
4972
4984
  dragging: boolean;
4973
- activePointers: PointerEvent[] | undefined;
4985
+ activePointers: PointerEvent[];
4974
4986
  set pixel(arg: any);
4975
4987
  /**
4976
4988
  * The map pixel relative to the viewport corresponding to the original event.
@@ -4993,8 +5005,8 @@ declare class BaseObject extends Observable {
4993
5005
  */
4994
5006
  constructor(values?: {
4995
5007
  [x: string]: any;
4996
- } | undefined);
4997
- values_: {} | null;
5008
+ });
5009
+ values_: {};
4998
5010
  /**
4999
5011
  * Gets a value.
5000
5012
  * @param {string} key Key name.
@@ -5049,7 +5061,7 @@ declare class BaseObject extends Observable {
5049
5061
  * @param {boolean} [silent] Update without triggering an event.
5050
5062
  * @api
5051
5063
  */
5052
- set(key: string, value: any, silent?: boolean | undefined): void;
5064
+ set(key: string, value: any, silent?: boolean): void;
5053
5065
  /**
5054
5066
  * Sets a collection of key-value pairs. Note that this changes any existing
5055
5067
  * properties and adds new ones (it does not remove any existing properties).
@@ -5059,7 +5071,7 @@ declare class BaseObject extends Observable {
5059
5071
  */
5060
5072
  setProperties(values: {
5061
5073
  [x: string]: any;
5062
- }, silent?: boolean | undefined): void;
5074
+ }, silent?: boolean): void;
5063
5075
  /**
5064
5076
  * Apply any properties from another object without triggering events.
5065
5077
  * @param {BaseObject} source The source object.
@@ -5072,13 +5084,13 @@ declare class BaseObject extends Observable {
5072
5084
  * @param {boolean} [silent] Unset without triggering an event.
5073
5085
  * @api
5074
5086
  */
5075
- unset(key: string, silent?: boolean | undefined): void;
5087
+ unset(key: string, silent?: boolean): void;
5076
5088
  }
5077
5089
  declare class VectorLayer extends BaseVectorLayer {
5078
5090
  }
5079
5091
  declare class Select extends Interaction {
5080
- boundAddFeature_: (evt: any) => void;
5081
- boundRemoveFeature_: (evt: any) => void;
5092
+ boundAddFeature_: any;
5093
+ boundRemoveFeature_: any;
5082
5094
  condition_: any;
5083
5095
  addCondition_: any;
5084
5096
  removeCondition_: any;
@@ -5154,16 +5166,16 @@ declare class Select extends Interaction {
5154
5166
  private removeFeatureLayerAssociation_;
5155
5167
  }
5156
5168
  declare class Modify extends PointerInteraction {
5157
- boundHandleFeatureChange_: (evt: any) => void;
5169
+ boundHandleFeatureChange_: any;
5158
5170
  condition_: any;
5159
- defaultDeleteCondition_: (mapBrowserEvent: any) => any;
5171
+ defaultDeleteCondition_: (mapBrowserEvent: any) => boolean;
5160
5172
  deleteCondition_: any;
5161
5173
  insertVertexCondition_: any;
5162
5174
  vertexFeature_: any;
5163
- vertexSegments_: {} | null;
5175
+ vertexSegments_: {};
5164
5176
  lastPixel_: number[];
5165
5177
  ignoreNextSingleClick_: boolean;
5166
- featuresBeingModified_: Collection | null;
5178
+ featuresBeingModified_: Collection;
5167
5179
  rBush_: RBush2;
5168
5180
  pixelTolerance_: any;
5169
5181
  snappedToVertex_: boolean;
@@ -5171,15 +5183,15 @@ declare class Modify extends PointerInteraction {
5171
5183
  dragSegments_: any[];
5172
5184
  overlay_: VectorLayer;
5173
5185
  SEGMENT_WRITERS_: {
5174
- Point: (feature2: any, geometry: Point) => void;
5175
- LineString: (feature2: any, geometry: any) => void;
5176
- LinearRing: (feature2: any, geometry: any) => void;
5177
- Polygon: (feature2: any, geometry: any) => void;
5178
- MultiPoint: (feature2: any, geometry: any) => void;
5179
- MultiLineString: (feature2: any, geometry: any) => void;
5180
- MultiPolygon: (feature2: any, geometry: any) => void;
5181
- Circle: (feature2: any, geometry: any) => void;
5182
- GeometryCollection: (feature2: any, geometry: any) => void;
5186
+ Point: any;
5187
+ LineString: any;
5188
+ LinearRing: any;
5189
+ Polygon: any;
5190
+ MultiPoint: any;
5191
+ MultiLineString: any;
5192
+ MultiPolygon: any;
5193
+ Circle: any;
5194
+ GeometryCollection: any;
5183
5195
  };
5184
5196
  source_: any;
5185
5197
  hitDetection_: any;
@@ -5358,15 +5370,15 @@ declare class Snap extends PointerInteraction {
5358
5370
  pixelTolerance_: any;
5359
5371
  rBush_: RBush2;
5360
5372
  GEOMETRY_SEGMENTERS_: {
5361
- Point: (segments: Array<Array<any>>, geometry: any) => void;
5362
- LineString: (segments: Array<Array<any>>, geometry: any) => void;
5363
- LinearRing: (segments: Array<Array<any>>, geometry: any) => void;
5364
- Polygon: (segments: Array<Array<any>>, geometry: any) => void;
5365
- MultiPoint: (segments: Array<Array<any>>, geometry: any) => void;
5366
- MultiLineString: (segments: Array<Array<any>>, geometry: any) => void;
5367
- MultiPolygon: (segments: Array<Array<any>>, geometry: any) => void;
5368
- GeometryCollection: (segments: Array<Array<any>>, geometry: any) => void;
5369
- Circle: (segments: Array<Array<any>>, geometry: any) => void;
5373
+ Point: any;
5374
+ LineString: any;
5375
+ LinearRing: any;
5376
+ Polygon: any;
5377
+ MultiPoint: any;
5378
+ MultiLineString: any;
5379
+ MultiPolygon: any;
5380
+ GeometryCollection: any;
5381
+ Circle: any;
5370
5382
  };
5371
5383
  /**
5372
5384
  * Add a feature to the collection of features that we may snap to.
@@ -5403,7 +5415,7 @@ declare class Snap extends PointerInteraction {
5403
5415
  * or not. Defaults to `true`.
5404
5416
  * @api
5405
5417
  */
5406
- removeFeature(feature2: any, unlisten?: boolean | undefined): void;
5418
+ removeFeature(feature2: any, unlisten?: boolean): void;
5407
5419
  /**
5408
5420
  * @param {import("../pixel.js").Pixel} pixel Pixel
5409
5421
  * @param {import("../coordinate.js").Coordinate} pixelCoordinate Coordinate
@@ -5675,7 +5687,7 @@ declare class Overlay extends BaseObject {
5675
5687
  target: any;
5676
5688
  type: any;
5677
5689
  listener: any;
5678
- } | null;
5690
+ };
5679
5691
  /**
5680
5692
  * Get the DOM element of this overlay.
5681
5693
  * @return {HTMLElement|undefined} The Element containing the overlay.
@@ -5787,7 +5799,7 @@ declare class Overlay extends BaseObject {
5787
5799
  * @param {PanIntoViewOptions} [panIntoViewOptions] Options for the pan action
5788
5800
  * @api
5789
5801
  */
5790
- panIntoView(panIntoViewOptions?: any): void;
5802
+ panIntoView(panIntoViewOptions?: PanIntoViewOptions): void;
5791
5803
  /**
5792
5804
  * Get the extent of an element relative to the document
5793
5805
  * @param {HTMLElement} element The element.
@@ -5832,7 +5844,7 @@ declare class DrawHandler {
5832
5844
  * 构造函数
5833
5845
  * @param map 地图实例
5834
5846
  */
5835
- constructor(map?: null);
5847
+ constructor(map?: any);
5836
5848
  map: any;
5837
5849
  curFeature: any;
5838
5850
  flag: boolean;
@@ -5840,17 +5852,17 @@ declare class DrawHandler {
5840
5852
  rememberCoordsClone: any[];
5841
5853
  step: number;
5842
5854
  timer: any;
5843
- source: VectorSource | null;
5844
- vector: VectorLayer | null;
5845
- draw: Draw | null;
5846
- snap: Snap | null;
5847
- modify: Modify | null;
5848
- select: Select | null;
5855
+ source: VectorSource;
5856
+ vector: VectorLayer;
5857
+ draw: Draw;
5858
+ snap: Snap;
5859
+ modify: Modify;
5860
+ select: Select;
5849
5861
  bInit: boolean;
5850
5862
  selectEnable: boolean;
5851
5863
  defaultStyle: Style;
5852
- drawConditions: DrawConditions | null;
5853
- interactionHandler: InteractionHandler | null;
5864
+ drawConditions: DrawConditions;
5865
+ interactionHandler: InteractionHandler;
5854
5866
  drawType: string;
5855
5867
  spliceSnaps: any[];
5856
5868
  splicePoints: any[];
@@ -5871,7 +5883,7 @@ declare class DrawHandler {
5871
5883
  /**
5872
5884
  * 获取绘制的矢量图层
5873
5885
  */
5874
- getLayer(): VectorLayer | null;
5886
+ getLayer(): VectorLayer;
5875
5887
  /**
5876
5888
  * 创建矢量图层
5877
5889
  * @param style 样式配置
@@ -5922,7 +5934,7 @@ declare class DrawHandler {
5922
5934
  * 激活编辑
5923
5935
  * @param map 地图实例
5924
5936
  */
5925
- activeModify(map?: any): Modify | null;
5937
+ activeModify(map?: any): Modify;
5926
5938
  /**
5927
5939
  * 移除编辑
5928
5940
  * @param map 地图实例
@@ -5962,13 +5974,13 @@ declare class DrawHandler {
5962
5974
  * @param drawEndHandle 绘制结束回调
5963
5975
  * @param options 绘制选项
5964
5976
  */
5965
- drawPoint(drawEndHandle?: null, options2?: {}): boolean;
5977
+ drawPoint(drawEndHandle?: any, options2?: {}): boolean;
5966
5978
  /**
5967
5979
  * 绘制线
5968
5980
  * @param drawEndHandle 绘制结束回调
5969
5981
  * @param options 绘制选项
5970
5982
  */
5971
- drawLineString(drawEndHandle?: null, options2?: {}): boolean;
5983
+ drawLineString(drawEndHandle?: any, options2?: {}): boolean;
5972
5984
  /**
5973
5985
  * 结束绘制
5974
5986
  * @param map 地图实例
@@ -6058,7 +6070,7 @@ declare class DrawConditions {
6058
6070
  listener: any;
6059
6071
  geometryChangeEvent: any;
6060
6072
  tooltipCollection: any[];
6061
- measureTooltip: Overlay | null;
6073
+ measureTooltip: Overlay;
6062
6074
  drawHandler: any;
6063
6075
  map: any;
6064
6076
  draw: any;
@@ -6117,11 +6129,11 @@ declare class WktHandler extends WKT {
6117
6129
  */
6118
6130
  feature2wkt(feature2: any): string;
6119
6131
  /**
6120
- * 将VectorLayer转换为WKT格式
6121
- * @param layer VectorLayer对象
6122
- * @returns WKT字符串
6132
+ * 将WKT转换为Feature对象
6133
+ * @param wkt WKT字符串
6134
+ * @returns Feature对象
6123
6135
  */
6124
- layer2wkt(layer: any): string;
6136
+ wkt2feature(wkt2: any): any;
6125
6137
  /**
6126
6138
  * 将GeoJSON转换为WKT格式
6127
6139
  * @param geojson GeoJSON对象
@@ -6134,6 +6146,12 @@ declare class WktHandler extends WKT {
6134
6146
  * @returns GeoJSON对象
6135
6147
  */
6136
6148
  wkt2geojson(wkt2: any): GeoJSONFeatureCollection;
6149
+ /**
6150
+ * 将VectorLayer转换为WKT格式
6151
+ * @param layer VectorLayer对象
6152
+ * @returns WKT字符串
6153
+ */
6154
+ layer2wkt(layer: any): string;
6137
6155
  /**
6138
6156
  * 将WKT转换为VectorLayer
6139
6157
  * @param wkt WKT字符串
@@ -6206,6 +6224,12 @@ declare class GeojsonHandler extends GeoJSON {
6206
6224
  * @returns 创建的矢量图层
6207
6225
  */
6208
6226
  geojson2layer(geojson2: any, options2?: {}): VectorLayer;
6227
+ /**
6228
+ * 将VectorLayer转换为GeoJSON格式
6229
+ * @param layer VectorLayer对象
6230
+ * @returns GeoJSON对象
6231
+ */
6232
+ layer2geojson(layer: any): any;
6209
6233
  }
6210
6234
  declare class LayerHandler {
6211
6235
  /**
@@ -6230,7 +6254,7 @@ declare class LayerHandler {
6230
6254
  getCustomTileGrid(params2: any, localParams: any): TileGrid;
6231
6255
  getWmtsUrl({ url, customParams }: {
6232
6256
  url: any;
6233
- customParams?: {} | undefined;
6257
+ customParams?: {};
6234
6258
  }): any;
6235
6259
  /**
6236
6260
  * 根据投影坐标系创建WMTS图层
@@ -6251,13 +6275,13 @@ declare class LayerHandler {
6251
6275
  */
6252
6276
  getWmtsByCapabilities(options2: any): TileLayer;
6253
6277
  getWmtsGeoserver({ prj, options: options2 }: {
6254
- prj?: string | undefined;
6278
+ prj?: string;
6255
6279
  options: any;
6256
6280
  }): TileLayer;
6257
6281
  getXYZ(options2: any): TileLayer;
6258
6282
  getXYZByPrj({ prj, options: options2 }: {
6259
6283
  prj: any;
6260
- options?: {} | undefined;
6284
+ options?: {};
6261
6285
  }): TileLayer;
6262
6286
  getTdtByPrj({ prj, options: options2 }: {
6263
6287
  prj: any;
@@ -6271,33 +6295,33 @@ declare class LayerHandler {
6271
6295
  getUserDefinedXYZ(options2: any): TileLayer;
6272
6296
  getGeojsonLayer({ id: id2, visible: visible2, geojson: geojson2 }: {
6273
6297
  id: any;
6274
- visible?: boolean | undefined;
6298
+ visible?: boolean;
6275
6299
  geojson: any;
6276
6300
  }): VectorLayer;
6277
6301
  getWktLayer({ id: id2, visible: visible2, wkt: wkt2 }: {
6278
6302
  id: any;
6279
- visible?: boolean | undefined;
6303
+ visible?: boolean;
6280
6304
  wkt: any;
6281
6305
  }): VectorLayer;
6282
6306
  getGaodeLayer(options2: any): TileLayer;
6283
- getUrl(type: number | undefined, x: any, y: any, z: any): string;
6307
+ getUrl(type: number, x: any, y: any, z: any): string;
6284
6308
  getBaiduLayer(options2: any): TileLayer;
6285
6309
  getGeojsonLayerWithRender(options2: any): VectorLayer;
6286
6310
  getHeatMapLayer(geojson2: any, options2: any): Heatmap;
6287
6311
  getClusterLayer(data: any, { id: id2, visible: visible2, distance: distance2, minDistance, style, zIndex, geomField, showLabel }?: {
6288
6312
  id?: any;
6289
- visible?: boolean | undefined;
6290
- distance?: number | undefined;
6291
- minDistance?: number | undefined;
6292
- style?: {} | undefined;
6313
+ visible?: boolean;
6314
+ distance?: number;
6315
+ minDistance?: number;
6316
+ style?: {};
6293
6317
  zIndex: any;
6294
- geomField?: string | undefined;
6295
- showLabel?: boolean | undefined;
6318
+ geomField?: string;
6319
+ showLabel?: boolean;
6296
6320
  }): VectorLayer;
6297
6321
  getOverlayLayer(container: any, { autoPan, className, positioning }?: {
6298
- autoPan?: boolean | undefined;
6299
- className?: string | undefined;
6300
- positioning?: string | undefined;
6322
+ autoPan?: boolean;
6323
+ className?: string;
6324
+ positioning?: string;
6301
6325
  }): Overlay;
6302
6326
  /**
6303
6327
  * 获取矢量图层
@@ -6321,57 +6345,39 @@ declare class LayerHandler {
6321
6345
  * @returns ring layer
6322
6346
  */
6323
6347
  createRingLayer(options2: any): VectorLayer;
6324
- /**
6325
- * 创建点
6326
- * @param {*} options
6327
- * @param {*} options.layerId
6328
- * @param {*} options.features
6329
- * @param {*} options.zIndex
6330
- * @param {*} options.style
6331
- * @param {*} options.map
6332
- * @param {*} options.clear
6333
- * @returns layer
6334
- */
6335
6348
  createPoints(options2: any): any;
6336
- /**
6337
- * 创建线
6338
- * @param {*} options
6339
- * @param {*} options.layerId
6340
- * @param {*} options.features
6341
- * @param {*} options.zIndex
6342
- * @param {*} options.style
6343
- * @param {*} options.map
6344
- * @param {*} options.clear
6345
- * @returns layer
6346
- */
6347
6349
  createLines(options2: any): any;
6348
- /**
6349
- * 创建多线
6350
- * @param {*} options
6351
- * @param {*} options.layerId
6352
- * @param {*} options.features
6353
- * @param {*} options.zIndex
6354
- * @param {*} options.style
6355
- * @param {*} options.map
6356
- * @param {*} options.clear
6357
- * @returns layer
6358
- */
6359
6350
  createMultiLines(options2: any): any;
6360
6351
  createPolygons(options2: any): any;
6361
6352
  createMultiPolygons(options2: any): any;
6362
- /**
6363
- * 创建自定义矢量图层
6364
- * @param {*} options
6365
- * @param {*} options.layerId
6366
- * @param {*} options.features
6367
- * @param {*} options.zIndex
6368
- * @param {*} options.style
6369
- * @param {*} options.map
6370
- * @param {*} options.clear
6371
- * @param {*} options.multiple
6372
- * @param {*} options.cluster
6373
- * @param {*} options.geomField
6374
- * @returns layer
6353
+ createLabels(options2: any): any;
6354
+ /**
6355
+ * 创建矢量点-单个要素
6356
+ * @param options 图层配置选项
6357
+ * @param {*} options.layerId 图层id
6358
+ * @param {*} options.features 要素集合
6359
+ * @param {*} options.zIndex 图层zIndex
6360
+ * @param {*} options.style 图层样式
6361
+ * @param {*} options.map 地图实例
6362
+ * @param {*} options.clear 是否清空图层
6363
+ * @param {*} options.point 点要素
6364
+ * @returns 矢量图层
6365
+ */
6366
+ createPoint(options2: any): any;
6367
+ /**
6368
+ * 创建矢量图层并添加到地图
6369
+ * @param options 图层配置选项
6370
+ * @param {*} options.layerId 图层id
6371
+ * @param {*} options.features 要素集合
6372
+ * @param {*} options.zIndex 图层zIndex
6373
+ * @param {*} options.style 图层样式
6374
+ * @param {*} options.map 地图实例
6375
+ * @param {*} options.clear 是否清空图层
6376
+ * @param {*} options.multiple 是否多要素
6377
+ * @param {*} options.cluster 是否聚类
6378
+ * @param {*} options.geomField 几何字段 默认wktstr
6379
+ * @param {*} options.zoomToLayer 是否缩放到图层
6380
+ * @returns 矢量图层
6375
6381
  */
6376
6382
  createCustomLayer(options2: any): any;
6377
6383
  /**
@@ -6529,7 +6535,7 @@ declare function tranMeters2Radius(map: any, metersValue: any): number;
6529
6535
  declare function tranRadius2Meters(map: any, radius: any): number;
6530
6536
  declare function tranRadius2Meters2(map: any, circle: any): number;
6531
6537
  declare function getIconStyle(): Style;
6532
- declare function getStyle(options2?: {}): any[] | Style | ((feature2: any, resolution: any) => Style | null);
6538
+ declare function getStyle(options2?: {}): any[] | Style | ((feature2: any, resolution: any) => Style);
6533
6539
  declare function getSvg(url: any, fromColor: any, color: any): any;
6534
6540
  declare function center(geojson2: any, options2?: {}): {
6535
6541
  type: string;
@@ -6626,9 +6632,9 @@ declare class Target extends Disposable {
6626
6632
  */
6627
6633
  constructor(target?: any);
6628
6634
  eventTarget_: any;
6629
- pendingRemovals_: {} | null;
6630
- dispatching_: {} | null;
6631
- listeners_: {} | null;
6635
+ pendingRemovals_: {};
6636
+ dispatching_: {};
6637
+ listeners_: {};
6632
6638
  /**
6633
6639
  * @param {string} type Type.
6634
6640
  * @param {import("../events.js").Listener} listener Listener.
@@ -6658,7 +6664,7 @@ declare class Target extends Disposable {
6658
6664
  * `true` will be returned if this event target has any listeners.
6659
6665
  * @return {boolean} Has listeners.
6660
6666
  */
6661
- hasListener(type?: string | undefined): boolean;
6667
+ hasListener(type?: string): boolean;
6662
6668
  /**
6663
6669
  * @param {string} type Type.
6664
6670
  * @param {import("../events.js").Listener} listener Listener.
@@ -6697,7 +6703,7 @@ declare class MapRenderer extends Disposable {
6697
6703
  * @return {T|undefined} Callback result.
6698
6704
  * @template S,T,U
6699
6705
  */
6700
- forEachFeatureAtCoordinate<S, T, U>(coordinate: any, frameState: any, hitTolerance: number, checkWrapped: boolean, callback: any, thisArg: S, layerFilter: (this: U, arg1: any) => boolean, thisArg2: U): T | undefined;
6706
+ forEachFeatureAtCoordinate<S, T, U>(coordinate: any, frameState: any, hitTolerance: number, checkWrapped: boolean, callback: any, thisArg: S, layerFilter: (this: U, arg1: any) => boolean, thisArg2: U): T;
6701
6707
  /**
6702
6708
  * @param {import("../coordinate.js").Coordinate} coordinate Coordinate.
6703
6709
  * @param {import("../Map.js").FrameState} frameState FrameState.
@@ -6721,7 +6727,7 @@ declare class MapRenderer extends Disposable {
6721
6727
  * @abstract
6722
6728
  * @param {?import("../Map.js").FrameState} frameState Frame state.
6723
6729
  */
6724
- renderFrame(frameState: any | null): void;
6730
+ renderFrame(frameState: any): void;
6725
6731
  /**
6726
6732
  * @param {import("../Map.js").FrameState} frameState Frame state.
6727
6733
  * @protected
@@ -6752,7 +6758,7 @@ declare class BaseLayer extends BaseObject {
6752
6758
  * @param {boolean} [managed] Layer is managed.
6753
6759
  * @return {import("./Layer.js").State} Layer state.
6754
6760
  */
6755
- getLayerState(managed?: boolean | undefined): any;
6761
+ getLayerState(managed?: boolean): any;
6756
6762
  /**
6757
6763
  * @abstract
6758
6764
  * @param {Array<import("./Layer.js").default>} [array] Array of layers (to be
@@ -6766,7 +6772,7 @@ declare class BaseLayer extends BaseObject {
6766
6772
  * states (to be modified in place).
6767
6773
  * @return {Array<import("./Layer.js").State>} List of layer states.
6768
6774
  */
6769
- getLayerStatesArray(states?: any[] | undefined): Array<any>;
6775
+ getLayerStatesArray(states?: Array<any>): Array<any>;
6770
6776
  /**
6771
6777
  * Return the {@link module:ol/extent~Extent extent} of the layer or `undefined` if it
6772
6778
  * will be visible regardless of extent.
@@ -6839,7 +6845,7 @@ declare class BaseLayer extends BaseObject {
6839
6845
  * Sets the background color.
6840
6846
  * @param {BackgroundColor} [background] Background color.
6841
6847
  */
6842
- setBackground(background?: any): void;
6848
+ setBackground(background?: BackgroundColor): void;
6843
6849
  /**
6844
6850
  * Set the extent at which the layer is visible. If `undefined`, the layer
6845
6851
  * will be visible at all extents.
@@ -6917,7 +6923,7 @@ declare class MapEvent extends BaseEvent {
6917
6923
  * @param {import("./Map.js").default} map Map.
6918
6924
  * @param {?import("./Map.js").FrameState} [frameState] Frame state.
6919
6925
  */
6920
- constructor(type: string, map: any, frameState?: any | null);
6926
+ constructor(type: string, map: any, frameState?: any);
6921
6927
  map: any;
6922
6928
  frameState: any;
6923
6929
  }
@@ -6962,7 +6968,7 @@ declare class Observable extends Target {
6962
6968
  protected unInternal(type: string | Array<string>, listener: (arg0: (Event | any)) => unknown): void;
6963
6969
  }
6964
6970
  declare class BaseVectorLayer extends Layer {
6965
- declutter_: string | undefined;
6971
+ declutter_: string;
6966
6972
  renderBuffer_: any;
6967
6973
  style_: any;
6968
6974
  updateWhileAnimating_: any;
@@ -7228,7 +7234,7 @@ declare class RBush2 {
7228
7234
  /**
7229
7235
  * @param {number} [maxEntries] Max entries.
7230
7236
  */
7231
- constructor(maxEntries?: number | undefined);
7237
+ constructor(maxEntries?: number);
7232
7238
  rbush_: {
7233
7239
  _maxEntries: number;
7234
7240
  _minEntries: number;
@@ -7351,7 +7357,7 @@ declare class FeatureFormat {
7351
7357
  * @return {ReadOptions|undefined} Options.
7352
7358
  * @protected
7353
7359
  */
7354
- protected getReadOptions(source: Document | Element | Object | string, options2: any): ReadOptions | undefined;
7360
+ protected getReadOptions(source: Document | Element | any | string, options2: any): ReadOptions | undefined;
7355
7361
  /**
7356
7362
  * Sets the `dataProjection` on the options, if no `dataProjection`
7357
7363
  * is set.
@@ -7375,7 +7381,7 @@ declare class FeatureFormat {
7375
7381
  * @param {ReadOptions} [options] Read options.
7376
7382
  * @return {import("../Feature.js").FeatureLike|Array<import("../render/Feature.js").default>} Feature.
7377
7383
  */
7378
- readFeature(source: Document | Element | Object | string, options2: any): any | Array<any>;
7384
+ readFeature(source: Document | Element | any | string, options2: any): any | Array<any>;
7379
7385
  /**
7380
7386
  * Read all features from a source.
7381
7387
  *
@@ -7384,7 +7390,7 @@ declare class FeatureFormat {
7384
7390
  * @param {ReadOptions} [options] Read options.
7385
7391
  * @return {Array<import('../Feature.js').FeatureLike|FeatureClassToFeature<T>>} Features.
7386
7392
  */
7387
- readFeatures(source: Document | Element | ArrayBuffer | Object | string, options2: any): Array<any | FeatureClassToFeature<T>>;
7393
+ readFeatures(source: Document | Element | ArrayBuffer | any | string, options2: any): Array<any | FeatureClassToFeature<T>>;
7388
7394
  /**
7389
7395
  * Read a single geometry from a source.
7390
7396
  *
@@ -7393,7 +7399,7 @@ declare class FeatureFormat {
7393
7399
  * @param {ReadOptions} [options] Read options.
7394
7400
  * @return {import("../geom/Geometry.js").default} Geometry.
7395
7401
  */
7396
- readGeometry(source: Document | Element | Object | string, options2: any): any;
7402
+ readGeometry(source: Document | Element | any | string, options2: any): any;
7397
7403
  /**
7398
7404
  * Read the projection from a source.
7399
7405
  *
@@ -7401,7 +7407,7 @@ declare class FeatureFormat {
7401
7407
  * @param {Document|Element|Object|string} source Source.
7402
7408
  * @return {import("../proj/Projection.js").default|undefined} Projection.
7403
7409
  */
7404
- readProjection(source: Document | Element | Object | string): any | undefined;
7410
+ readProjection(source: Document | Element | any | string): any | undefined;
7405
7411
  /**
7406
7412
  * Encode a feature in this format.
7407
7413
  *
@@ -7437,7 +7443,7 @@ declare class VectorSource extends Source {
7437
7443
  overlaps_: any;
7438
7444
  url_: any;
7439
7445
  strategy_: any;
7440
- featuresRtree_: RBush2 | null;
7446
+ featuresRtree_: RBush2;
7441
7447
  loadedExtentsRtree_: RBush2;
7442
7448
  loadingExtentsCount_: number;
7443
7449
  nullGeometryFeatures_: {};
@@ -7500,7 +7506,7 @@ declare class VectorSource extends Source {
7500
7506
  * @param {boolean} [fast] Skip dispatching of {@link module:ol/source/Vector.VectorSourceEvent#event:removefeature} events.
7501
7507
  * @api
7502
7508
  */
7503
- clear(fast?: boolean | undefined): void;
7509
+ clear(fast?: boolean): void;
7504
7510
  /**
7505
7511
  * Iterate through all features on the source, calling the provided callback
7506
7512
  * with each one. If the callback returns any "truthy" value, iteration will
@@ -7513,7 +7519,7 @@ declare class VectorSource extends Source {
7513
7519
  * @template T
7514
7520
  * @api
7515
7521
  */
7516
- forEachFeature<T>(callback: (arg0: FeatureType) => T): T | undefined;
7522
+ forEachFeature<T>(callback: (arg0: FeatureType) => T): T;
7517
7523
  /**
7518
7524
  * Iterate through all features whose geometries contain the provided
7519
7525
  * coordinate, calling the callback with each feature. If the callback returns
@@ -7529,7 +7535,7 @@ declare class VectorSource extends Source {
7529
7535
  * @return {T|undefined} The return value from the last call to the callback.
7530
7536
  * @template T
7531
7537
  */
7532
- forEachFeatureAtCoordinateDirect<T_1>(coordinate: any, callback: (arg0: FeatureType) => T_1): T_1 | undefined;
7538
+ forEachFeatureAtCoordinateDirect<T_1>(coordinate: any, callback: (arg0: FeatureType) => T_1): T_1;
7533
7539
  /**
7534
7540
  * Iterate through all features whose bounding box intersects the provided
7535
7541
  * extent (note that the feature's geometry may not intersect the extent),
@@ -7549,7 +7555,7 @@ declare class VectorSource extends Source {
7549
7555
  * @template T
7550
7556
  * @api
7551
7557
  */
7552
- forEachFeatureInExtent<T_2>(extent: any, callback: (arg0: FeatureType) => T_2): T_2 | undefined;
7558
+ forEachFeatureInExtent<T_2>(extent: any, callback: (arg0: FeatureType) => T_2): T_2;
7553
7559
  /**
7554
7560
  * Iterate through all features whose geometry intersects the provided extent,
7555
7561
  * calling the callback with each feature. If the callback returns a "truthy"
@@ -7565,7 +7571,7 @@ declare class VectorSource extends Source {
7565
7571
  * @template T
7566
7572
  * @api
7567
7573
  */
7568
- forEachFeatureIntersectingExtent<T_3>(extent: any, callback: (arg0: FeatureType) => T_3): T_3 | undefined;
7574
+ forEachFeatureIntersectingExtent<T_3>(extent: any, callback: (arg0: FeatureType) => T_3): T_3;
7569
7575
  /**
7570
7576
  * Get the features collection associated with this source. Will be `null`
7571
7577
  * unless the source was configured with `useSpatialIndex` set to `false`, or
@@ -7616,7 +7622,7 @@ declare class VectorSource extends Source {
7616
7622
  * @return {FeatureType} Closest feature.
7617
7623
  * @api
7618
7624
  */
7619
- getClosestFeatureToCoordinate(coordinate: any, filter?: ((arg0: FeatureType) => boolean) | undefined): FeatureType;
7625
+ getClosestFeatureToCoordinate(coordinate: any, filter?: (arg0: FeatureType) => boolean): FeatureType;
7620
7626
  /**
7621
7627
  * Get the extent of the features currently in the source.
7622
7628
  *
@@ -7758,9 +7764,9 @@ declare class Draw extends PointerInteraction {
7758
7764
  dragVertexDelay_: any;
7759
7765
  finishCoordinate_: any;
7760
7766
  sketchFeature_: any;
7761
- sketchPoint_: Feature | null;
7767
+ sketchPoint_: Feature;
7762
7768
  sketchCoords_: any;
7763
- sketchLine_: Feature | null;
7769
+ sketchLine_: Feature;
7764
7770
  sketchLineCoords_: any;
7765
7771
  squaredClickTolerance_: number;
7766
7772
  overlay_: VectorLayer;
@@ -7785,8 +7791,8 @@ declare class Draw extends PointerInteraction {
7785
7791
  * @api
7786
7792
  */
7787
7793
  getOverlay(): VectorLayer;
7788
- lastDragTime_: number | undefined;
7789
- downTimeout_: number | undefined;
7794
+ lastDragTime_: number;
7795
+ downTimeout_: number;
7790
7796
  /**
7791
7797
  * @private
7792
7798
  */
@@ -7932,34 +7938,34 @@ declare class Base {
7932
7938
  }
7933
7939
  declare class MeasurementManager {
7934
7940
  state: {
7935
- pointerMoveHandler: null;
7936
- draw: null;
7937
- helpTooltip: null;
7938
- measureTooltip: null;
7939
- measureTooltipArray: never[];
7941
+ pointerMoveHandler: any;
7942
+ draw: any;
7943
+ helpTooltip: any;
7944
+ measureTooltip: any;
7945
+ measureTooltipArray: any[];
7940
7946
  curMeasureType: string;
7941
- lastGeometry: null;
7942
- polygonLayerArray: never[];
7943
- polylineLayerArray: never[];
7944
- sketch: null;
7945
- helpTooltipElement: null;
7946
- measureTooltipElement: null;
7947
- listener: null;
7947
+ lastGeometry: any;
7948
+ polygonLayerArray: any[];
7949
+ polylineLayerArray: any[];
7950
+ sketch: any;
7951
+ helpTooltipElement: any;
7952
+ measureTooltipElement: any;
7953
+ listener: any;
7948
7954
  };
7949
7955
  initializeState(): {
7950
- pointerMoveHandler: null;
7951
- draw: null;
7952
- helpTooltip: null;
7953
- measureTooltip: null;
7954
- measureTooltipArray: never[];
7956
+ pointerMoveHandler: any;
7957
+ draw: any;
7958
+ helpTooltip: any;
7959
+ measureTooltip: any;
7960
+ measureTooltipArray: any[];
7955
7961
  curMeasureType: string;
7956
- lastGeometry: null;
7957
- polygonLayerArray: never[];
7958
- polylineLayerArray: never[];
7959
- sketch: null;
7960
- helpTooltipElement: null;
7961
- measureTooltipElement: null;
7962
- listener: null;
7962
+ lastGeometry: any;
7963
+ polygonLayerArray: any[];
7964
+ polylineLayerArray: any[];
7965
+ sketch: any;
7966
+ helpTooltipElement: any;
7967
+ measureTooltipElement: any;
7968
+ listener: any;
7963
7969
  };
7964
7970
  /**
7965
7971
  * 格式化长度输出
@@ -7996,7 +8002,7 @@ declare class MeasurementManager {
7996
8002
  /**
7997
8003
  * 创建测量图层
7998
8004
  */
7999
- createMeasurementLayer(geometry: any, isPolygon: any): VectorLayer;
8005
+ createMeasurementLayer(geometry: any, isPolygon2: any): VectorLayer;
8000
8006
  /**
8001
8007
  * 添加交互
8002
8008
  */
@@ -8023,7 +8029,7 @@ declare class TileGrid {
8023
8029
  constructor(options2: any);
8024
8030
  minZoom: any;
8025
8031
  resolutions_: any;
8026
- zoomFactor_: number | undefined;
8032
+ zoomFactor_: number;
8027
8033
  maxZoom: number;
8028
8034
  origin_: any;
8029
8035
  origins_: any;
@@ -8326,14 +8332,14 @@ declare class Polygon extends SimpleGeometry {
8326
8332
  * @param {import("./Geometry.js").GeometryLayout} [layout] Layout.
8327
8333
  * @param {Array<number>} [ends] Ends (for internal use with flat coordinates).
8328
8334
  */
8329
- constructor(coordinates2: any, layout?: any, ends?: number[] | undefined);
8335
+ constructor(coordinates2: any, layout?: any, ends?: Array<number>);
8330
8336
  ends_: any[];
8331
8337
  flatInteriorPointRevision_: number;
8332
8338
  flatInteriorPoint_: any;
8333
8339
  maxDelta_: number;
8334
8340
  maxDeltaRevision_: number;
8335
8341
  orientedRevision_: number;
8336
- orientedFlatCoordinates_: number[] | null | undefined;
8342
+ orientedFlatCoordinates_: number[];
8337
8343
  /**
8338
8344
  * Append the passed linear ring to this polygon.
8339
8345
  * @param {LinearRing} linearRing Linear ring.
@@ -8405,7 +8411,7 @@ declare class Feature extends BaseObject {
8405
8411
  target: any;
8406
8412
  type: any;
8407
8413
  listener: any;
8408
- } | null;
8414
+ };
8409
8415
  /**
8410
8416
  * Clone this feature. If the original feature has a geometry it
8411
8417
  * is also cloned. The feature id is not set in the clone.
@@ -8524,13 +8530,13 @@ declare class BaseEvent {
8524
8530
  * @api
8525
8531
  */
8526
8532
  preventDefault(): void;
8527
- defaultPrevented: boolean | undefined;
8533
+ defaultPrevented: boolean;
8528
8534
  /**
8529
8535
  * Stop event propagation.
8530
8536
  * @api
8531
8537
  */
8532
8538
  stopPropagation(): void;
8533
- propagationStopped: boolean | undefined;
8539
+ propagationStopped: boolean;
8534
8540
  }
8535
8541
  declare class Event {
8536
8542
  constructor(p: any, featureId2: any, ringId2: any, eventId2: any);
@@ -8550,17 +8556,17 @@ declare class Layer extends BaseLayer {
8550
8556
  target: any;
8551
8557
  type: any;
8552
8558
  listener: any;
8553
- } | null;
8559
+ };
8554
8560
  mapRenderKey_: {
8555
8561
  target: any;
8556
8562
  type: any;
8557
8563
  listener: any;
8558
- } | null;
8564
+ };
8559
8565
  sourceChangeKey_: {
8560
8566
  target: any;
8561
8567
  type: any;
8562
8568
  listener: any;
8563
- } | null;
8569
+ };
8564
8570
  renderer_: any;
8565
8571
  sourceReady_: boolean;
8566
8572
  rendered: boolean;
@@ -8572,7 +8578,7 @@ declare class Layer extends BaseLayer {
8572
8578
  * for rendering its content.
8573
8579
  * @return {HTMLElement|null} The rendered element.
8574
8580
  */
8575
- render(frameState: any | null, target: HTMLElement): HTMLElement | null;
8581
+ render(frameState: any, target: HTMLElement): HTMLElement | null;
8576
8582
  /**
8577
8583
  * Get the layer source.
8578
8584
  * @return {SourceType|null} The layer source (or `null` if not yet set).
@@ -8794,21 +8800,21 @@ declare class JSONFeature extends FeatureFormat {
8794
8800
  * @param {import("./Feature.js").WriteOptions} [options] Write options.
8795
8801
  * @return {Object} Object.
8796
8802
  */
8797
- writeFeatureObject(feature2: any, options2: any): Object;
8803
+ writeFeatureObject(feature2: any, options2: any): any;
8798
8804
  /**
8799
8805
  * @abstract
8800
8806
  * @param {Array<import("../Feature.js").default>} features Features.
8801
8807
  * @param {import("./Feature.js").WriteOptions} [options] Write options.
8802
8808
  * @return {Object} Object.
8803
8809
  */
8804
- writeFeaturesObject(features: Array<any>, options2: any): Object;
8810
+ writeFeaturesObject(features: Array<any>, options2: any): any;
8805
8811
  /**
8806
8812
  * @abstract
8807
8813
  * @param {import("../geom/Geometry.js").default} geometry Geometry.
8808
8814
  * @param {import("./Feature.js").WriteOptions} [options] Write options.
8809
8815
  * @return {Object} Object.
8810
8816
  */
8811
- writeGeometryObject(geometry: any, options2: any): Object;
8817
+ writeGeometryObject(geometry: any, options2: any): any;
8812
8818
  }
8813
8819
  declare class BaseTileLayer extends Layer {
8814
8820
  /**
@@ -8887,7 +8893,7 @@ declare class SimpleGeometry extends Geometry {
8887
8893
  * @param {Array<number>} flatCoordinates Flat coordinates.
8888
8894
  */
8889
8895
  setFlatCoordinates(layout: any, flatCoordinates: Array<number>): void;
8890
- flatCoordinates: number[] | undefined;
8896
+ flatCoordinates: number[];
8891
8897
  /**
8892
8898
  * @abstract
8893
8899
  * @param {!Array<*>} coordinates Coordinates.
@@ -9004,7 +9010,7 @@ declare class Geometry extends BaseObject {
9004
9010
  * of the geometry extent).
9005
9011
  * @api
9006
9012
  */
9007
- scale(sx: number, sy?: number | undefined, anchor?: any): void;
9013
+ scale(sx: number, sy?: number, anchor?: any): void;
9008
9014
  /**
9009
9015
  * Create a simplified version of this geometry. For linestrings, this uses
9010
9016
  * the [Douglas Peucker](https://en.wikipedia.org/wiki/Ramer-Douglas-Peucker_algorithm)
@@ -9139,7 +9145,7 @@ declare class Control extends BaseObject {
9139
9145
  */
9140
9146
  constructor(options2: any);
9141
9147
  element: any;
9142
- target_: HTMLElement | null;
9148
+ target_: HTMLElement;
9143
9149
  map_: any;
9144
9150
  listenerKeys: any[];
9145
9151
  /**