@gis_victory/gismap 2.0.28 → 2.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -31,6 +31,7 @@ import { LngLat } from '@gis_victory/mapbox-gl';
31
31
  import { LngLatBounds } from '@gis_victory/mapbox-gl';
32
32
  import { LngLatLike } from '@gis_victory/mapbox-gl';
33
33
  import { LoadFunction } from 'element-plus';
34
+ import type * as mapboxgl_2 from '@gis_victory/mapbox-gl';
34
35
  import { Marker } from '@gis_victory/mapbox-gl';
35
36
  import { MaybeRefOrGetter } from 'vue';
36
37
  import { Node as Node_2 } from 'element-plus/es/components/tree/src/model/node.mjs';
@@ -893,7 +894,7 @@ declare class DrawManager {
893
894
  private createTooltip;
894
895
  private showTooltip;
895
896
  private hideTooltip;
896
- private updateTooltipPosition;
897
+ private _updateTooltipPosition;
897
898
  private removeTooltip;
898
899
  private finishDraw;
899
900
  private updateDrawFeature;
@@ -3528,11 +3529,11 @@ export declare const GisMapMeasure: DefineComponent< {}, {}, {}, {}, {}, Comp
3528
3529
  /**
3529
3530
  * 地图配置选项
3530
3531
  */
3531
- export declare interface GISMapOptions extends Omit<mapboxgl.MapboxOptions, 'container'> {
3532
+ export declare interface GISMapOptions extends Omit<mapboxgl_2.MapboxOptions, 'container'> {
3532
3533
  /** 容器 ID 或元素 */
3533
3534
  container: string | HTMLElement;
3534
3535
  /** 地图样式 */
3535
- style?: string | mapboxgl.StyleSpecification;
3536
+ style?: string | mapboxgl_2.StyleSpecification;
3536
3537
  /** 初始中心点 */
3537
3538
  center?: [number, number];
3538
3539
  /** 初始缩放级别 */
@@ -3717,7 +3718,7 @@ export declare interface GISMapStyleConfig {
3717
3718
  /** 地形样式 */
3718
3719
  terrain?: string;
3719
3720
  /** 自定义样式 */
3720
- custom?: mapboxgl.StyleSpecification;
3721
+ custom?: mapboxgl_2.StyleSpecification;
3721
3722
  /** 字体 */
3722
3723
  glyphs?: string;
3723
3724
  /** 图标集 */
@@ -3937,7 +3938,7 @@ export declare interface IEventSystem {
3937
3938
  * GIS 地图核心接口
3938
3939
  * 继承 MapboxGL.Map 并扩展功能
3939
3940
  */
3940
- export declare interface IGISMap extends mapboxgl.Map {
3941
+ export declare interface IGISMap extends mapboxgl_2.Map {
3941
3942
  /** 地图唯一标识 */
3942
3943
  readonly id: string;
3943
3944
  /** 地图名称 */
@@ -3973,19 +3974,19 @@ export declare interface IGISMap extends mapboxgl.Map {
3973
3974
  /**
3974
3975
  * 缩放到指定级别
3975
3976
  */
3976
- zoomTo(zoom: number, options?: mapboxgl.CameraOptions & mapboxgl.AnimationOptions): this;
3977
+ zoomTo(zoom: number, options?: mapboxgl_2.CameraOptions & mapboxgl_2.AnimationOptions): this;
3977
3978
  /**
3978
3979
  * 适应边界
3979
3980
  */
3980
- fitBounds(bounds: [number, number, number, number], options?: mapboxgl.FitBoundsOptions): this;
3981
+ fitBounds(bounds: [number, number, number, number], options?: mapboxgl_2.FitBoundsOptions): this;
3981
3982
  /**
3982
3983
  * 获取视图范围
3983
3984
  */
3984
- getBounds(): mapboxgl.LngLatBounds;
3985
+ getBounds(): mapboxgl_2.LngLatBounds;
3985
3986
  /**
3986
3987
  * 获取中心点
3987
3988
  */
3988
- getCenter(): mapboxgl.LngLat;
3989
+ getCenter(): mapboxgl_2.LngLat;
3989
3990
  /**
3990
3991
  * 获取缩放级别
3991
3992
  */
@@ -4002,11 +4003,11 @@ export declare interface IGISMap extends mapboxgl.Map {
4002
4003
  /**
4003
4004
  * 添加控件
4004
4005
  */
4005
- addControl(control: mapboxgl.IControl, position?: string): this;
4006
+ addControl(control: mapboxgl_2.IControl, position?: string): this;
4006
4007
  /**
4007
4008
  * 移除控件
4008
4009
  */
4009
- removeControl(control: mapboxgl.IControl): this;
4010
+ removeControl(control: mapboxgl_2.IControl): this;
4010
4011
  }
4011
4012
 
4012
4013
  /**
@@ -5950,31 +5951,6 @@ declare interface QueryOptions {
5950
5951
  filter?: any[];
5951
5952
  }
5952
5953
 
5953
- declare class QuickSearchManager {
5954
- private map;
5955
- private markers;
5956
- private selectMarker;
5957
- private popup;
5958
- private callback;
5959
- private templateManager;
5960
- private popupManager;
5961
- constructor(map: any);
5962
- addFunction(callback: any): void;
5963
- add(options: {
5964
- uuid: string;
5965
- templateId: string;
5966
- geometry: any;
5967
- index: number;
5968
- properties: any;
5969
- }): void;
5970
- addGroup(options: {
5971
- data: any[];
5972
- }): void;
5973
- flyTo(uuid: string): void;
5974
- addPopup(): void;
5975
- clear(): void;
5976
- }
5977
-
5978
5954
  export declare class RadarManager {
5979
5955
  private adapter?;
5980
5956
  private id;
@@ -6035,20 +6011,6 @@ export declare interface RasterSource {
6035
6011
  bounds?: [number, number, number, number];
6036
6012
  }
6037
6013
 
6038
- declare interface SearchOptions {
6039
- limit?: number;
6040
- type?: string;
6041
- [key: string]: any;
6042
- }
6043
-
6044
- declare interface SearchResult {
6045
- uuid: string;
6046
- properties: any;
6047
- geometry: any;
6048
- index: number;
6049
- templateId: string;
6050
- }
6051
-
6052
6014
  /** 选中回调 */
6053
6015
  declare type SelectCallback = (feature: DrawFeature | null) => void;
6054
6016
 
@@ -6407,7 +6369,7 @@ export declare class TimeTravelStateStore extends StateStore implements ITimeTra
6407
6369
  * 提供类型安全的 DI 容器支持
6408
6370
  */
6409
6371
  /** 服务标识符 */
6410
- declare interface Token<T> {
6372
+ declare interface Token<_T> {
6411
6373
  readonly symbol: symbol;
6412
6374
  readonly name: string;
6413
6375
  }
@@ -6679,25 +6641,6 @@ export declare function useMarkers(): {
6679
6641
  getMarkersInBounds: (bounds: [[number, number], [number, number]]) => any;
6680
6642
  };
6681
6643
 
6682
- /**
6683
- * 地图搜索组合式函数
6684
- * 封装 QuickSearchManager 的功能
6685
- */
6686
- export declare function useSearch(): UseSearchReturn;
6687
-
6688
- export declare interface UseSearchReturn {
6689
- searchManager: QuickSearchManager | null;
6690
- keyword: string;
6691
- searching: boolean;
6692
- results: SearchResult[];
6693
- search: (keyword: string, options?: SearchOptions) => Promise<SearchResult[]>;
6694
- clearSearch: () => void;
6695
- selectResult: (result: SearchResult) => void;
6696
- history: string[];
6697
- addToHistory: (keyword: string) => void;
6698
- clearHistory: () => void;
6699
- }
6700
-
6701
6644
  /** 使用视图状态 */
6702
6645
  export declare function useViewState(): {
6703
6646
  view: ComputedRef<Readonly<Ref<{