@gis_victory/gismap 2.0.29 → 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 +13 -12
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
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
|
|
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<
|
|
3532
|
+
export declare interface GISMapOptions extends Omit<mapboxgl_2.MapboxOptions, 'container'> {
|
|
3532
3533
|
/** 容器 ID 或元素 */
|
|
3533
3534
|
container: string | HTMLElement;
|
|
3534
3535
|
/** 地图样式 */
|
|
3535
|
-
style?: string |
|
|
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?:
|
|
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
|
|
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?:
|
|
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?:
|
|
3981
|
+
fitBounds(bounds: [number, number, number, number], options?: mapboxgl_2.FitBoundsOptions): this;
|
|
3981
3982
|
/**
|
|
3982
3983
|
* 获取视图范围
|
|
3983
3984
|
*/
|
|
3984
|
-
getBounds():
|
|
3985
|
+
getBounds(): mapboxgl_2.LngLatBounds;
|
|
3985
3986
|
/**
|
|
3986
3987
|
* 获取中心点
|
|
3987
3988
|
*/
|
|
3988
|
-
getCenter():
|
|
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:
|
|
4006
|
+
addControl(control: mapboxgl_2.IControl, position?: string): this;
|
|
4006
4007
|
/**
|
|
4007
4008
|
* 移除控件
|
|
4008
4009
|
*/
|
|
4009
|
-
removeControl(control:
|
|
4010
|
+
removeControl(control: mapboxgl_2.IControl): this;
|
|
4010
4011
|
}
|
|
4011
4012
|
|
|
4012
4013
|
/**
|
|
@@ -6368,7 +6369,7 @@ export declare class TimeTravelStateStore extends StateStore implements ITimeTra
|
|
|
6368
6369
|
* 提供类型安全的 DI 容器支持
|
|
6369
6370
|
*/
|
|
6370
6371
|
/** 服务标识符 */
|
|
6371
|
-
declare interface Token<
|
|
6372
|
+
declare interface Token<_T> {
|
|
6372
6373
|
readonly symbol: symbol;
|
|
6373
6374
|
readonly name: string;
|
|
6374
6375
|
}
|