mirage2d 1.1.85 → 1.1.86
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/Enum/typeEnum.d.ts +2 -0
- package/dist/Layer/XMap.d.ts +12 -1
- package/dist/Layer/index.d.ts +1 -0
- package/dist/Layer/tileLayer/TileBaiDuLayer.d.ts +22 -0
- package/dist/Layer/tileLayer/TileTencentLayer.d.ts +22 -0
- package/dist/base/baseOptionType.d.ts +1 -0
- package/dist/config/json/mapConfig.json +465 -335
- package/dist/extend/Control/baseLayerSwitch.d.ts +8 -2
- package/dist/mirage2d.cjs.js +37 -37
- package/dist/mirage2d.umd.js +37 -37
- package/package.json +1 -1
- package/readme.md +17 -3
package/dist/Enum/typeEnum.d.ts
CHANGED
package/dist/Layer/XMap.d.ts
CHANGED
|
@@ -165,9 +165,20 @@ export declare class MirageMap extends baseMap {
|
|
|
165
165
|
*/
|
|
166
166
|
setSelectState(val: boolean): void;
|
|
167
167
|
/**
|
|
168
|
-
* @description:
|
|
168
|
+
* @description: 设置鼠标图标,支持cur,svg,文本
|
|
169
169
|
* @param {string} val
|
|
170
170
|
*/
|
|
171
171
|
setMapCursor(val: string): void;
|
|
172
|
+
/**
|
|
173
|
+
* @description: 显示/隐藏基础底图
|
|
174
|
+
* @param {boolean} enabled
|
|
175
|
+
*/
|
|
176
|
+
showBaseMap(enabled: boolean): void;
|
|
177
|
+
/**
|
|
178
|
+
* @description: 设置地图参数
|
|
179
|
+
* @param {string} key
|
|
180
|
+
* @param {string} val
|
|
181
|
+
*/
|
|
182
|
+
setOptions(key: string, val: any): void;
|
|
172
183
|
destroy(): void;
|
|
173
184
|
}
|
package/dist/Layer/index.d.ts
CHANGED
|
@@ -18,4 +18,5 @@ export { TifLayer } from "./tileLayer/TifLayer";
|
|
|
18
18
|
export { imageLayer } from "./tileLayer/imageLayer";
|
|
19
19
|
export { GeoImageLayer } from "./tileLayer/GeoImageLayer";
|
|
20
20
|
export { PbfLayer } from "./tileLayer/PbfLayer";
|
|
21
|
+
export { TileTencentLayer } from "./tileLayer/TileTencentLayer";
|
|
21
22
|
export { XWebGLPointsLayer } from "./XWebGLPointsLayer";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { baseTileLayer } from "../../base/baseTileLayer";
|
|
2
|
+
import { ITileLayerOption } from "src/base/baseOptionType";
|
|
3
|
+
/**
|
|
4
|
+
* @typedef {Object} Options
|
|
5
|
+
* @property {string} [url=''] 影像地址
|
|
6
|
+
* @property {number} [zIndex=1] 排序位置
|
|
7
|
+
* @property {Array<number>} [ImageExtent] 显示范围[minX, minY, maxX, maxY]
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @classdesc
|
|
11
|
+
* xyz影像数据类
|
|
12
|
+
* @extends base
|
|
13
|
+
* @api
|
|
14
|
+
*/
|
|
15
|
+
export declare class TileBaiDuLayer extends baseTileLayer {
|
|
16
|
+
/**
|
|
17
|
+
* @template {Options} Options
|
|
18
|
+
* @param {string} [layerid='TileXyzLayer'] 默认图层id
|
|
19
|
+
* @param {Options} [Options] Options 配置项
|
|
20
|
+
*/
|
|
21
|
+
constructor(layerid: string, Options: ITileLayerOption);
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ITileLayerOption } from "src/base/baseOptionType";
|
|
2
|
+
import { TileXyzLayer } from "./TileXyzLayer";
|
|
3
|
+
/**
|
|
4
|
+
* @typedef {Object} Options
|
|
5
|
+
* @property {string} [url=''] 影像地址
|
|
6
|
+
* @property {number} [zIndex=1] 排序位置
|
|
7
|
+
* @property {Array<number>} [ImageExtent] 显示范围[minX, minY, maxX, maxY]
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @classdesc
|
|
11
|
+
* xyz影像数据类
|
|
12
|
+
* @extends base
|
|
13
|
+
* @api
|
|
14
|
+
*/
|
|
15
|
+
export declare class TileTencentLayer extends TileXyzLayer {
|
|
16
|
+
/**
|
|
17
|
+
* @template {Options} Options
|
|
18
|
+
* @param {string} [layerid='TileXyzLayer'] 默认图层id
|
|
19
|
+
* @param {Options} [Options] Options 配置项
|
|
20
|
+
*/
|
|
21
|
+
constructor(layerid: string, Options: ITileLayerOption);
|
|
22
|
+
}
|