v-openlayers 2.10.2 → 2.10.3

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.
Files changed (79) hide show
  1. package/package/v-map/components-v3/Draggable/index.vue.d.ts +50 -0
  2. package/package/v-map/components-v3/Popup/Popup.vue.d.ts +10 -0
  3. package/package/v-map/components-v3/SvgIcon/SvgIconInner.vue.d.ts +40 -0
  4. package/package/v-map/components-v3/SvgIcon/svgs.d.ts +2 -0
  5. package/package/v-map/components-v3/Table/index.vue.d.ts +18 -0
  6. package/package/v-map/components-v3/Upload/index.vue.d.ts +29 -0
  7. package/package/v-map/components-v3/Upload/js/wkid.d.ts +5 -0
  8. package/package/v-map/global.d.ts +1 -1
  9. package/package/v-map/ol/init.d.ts +7 -0
  10. package/package/v-map/ol/lib/business/OlHandler.d.ts +4 -3
  11. package/package/v-map/ol/lib/config/default.config.d.ts +40 -0
  12. package/package/v-map/ol/lib/core/VMap.d.ts +22 -23
  13. package/package/v-map/ol/lib/core/plugins/DrawHandler.d.ts +2 -3
  14. package/package/v-map/ol/lib/core/plugins/FeatureHandler.d.ts +2 -3
  15. package/package/v-map/ol/lib/core/plugins/GeojsonHandler.d.ts +3 -3
  16. package/package/v-map/ol/lib/core/plugins/GeometryHandler.d.ts +3 -3
  17. package/package/v-map/ol/lib/core/plugins/InteractionHandler.d.ts +5 -5
  18. package/package/v-map/ol/lib/core/plugins/LayerHandler.d.ts +23 -17
  19. package/package/v-map/ol/lib/core/plugins/MeasureHandler.d.ts +1 -1
  20. package/package/v-map/ol/lib/core/plugins/ProjectionHandler.d.ts +3 -0
  21. package/package/v-map/ol/lib/core/plugins/StyleHandler.d.ts +1 -1
  22. package/package/v-map/ol/lib/core/plugins/TransformHandler.d.ts +1 -1
  23. package/package/v-map/ol/lib/core/plugins/WMTSExplorer.d.ts +6 -6
  24. package/package/v-map/ol/lib/core/plugins/WfsHandler.d.ts +1 -1
  25. package/package/v-map/ol/lib/core/plugins/WktHandler.d.ts +3 -3
  26. package/package/v-map/ol/lib/core/plugins/WmsHandler.d.ts +3 -3
  27. package/package/v-map/ol/lib/core/plugins/baidu/BaiduMap.d.ts +2 -2
  28. package/package/v-map/ol/v3/assets/js/data.d.ts +18 -0
  29. package/package/v-map/ol/v3/components/OlMap.vue.d.ts +131 -0
  30. package/package/v-map/ol/v3/components/eagle/index.vue.d.ts +96 -0
  31. package/package/v-map/ol/v3/components/index.d.ts +26 -0
  32. package/package/v-map/ol/v3/components/layer/arcgis/index.vue.d.ts +7 -0
  33. package/package/v-map/ol/v3/components/layer/display/Display.vue.d.ts +27 -0
  34. package/package/v-map/ol/v3/components/layer/layer/index.vue.d.ts +205 -0
  35. package/package/v-map/ol/v3/components/layer/overlay/index.vue.d.ts +78 -0
  36. package/package/v-map/ol/v3/components/layer/popup/identify/index.vue.d.ts +27 -0
  37. package/package/v-map/ol/v3/components/layer/popup/index.vue.d.ts +97 -0
  38. package/package/v-map/ol/v3/components/layer/popup/usePopup.d.ts +40 -0
  39. package/package/v-map/ol/v3/components/layer/supermap/index.vue.d.ts +7 -0
  40. package/package/v-map/ol/v3/components/layer/tdt/index.vue.d.ts +7 -0
  41. package/package/v-map/ol/v3/components/layer/tile/index.vue.d.ts +9 -0
  42. package/package/v-map/ol/v3/components/layer/useLayer.d.ts +72 -0
  43. package/package/v-map/ol/v3/components/layer/vector/index.vue.d.ts +182 -0
  44. package/package/v-map/ol/v3/components/layer/vectorTile/index.vue.d.ts +7 -0
  45. package/package/v-map/ol/v3/components/layer/web/baidu.vue.d.ts +2 -0
  46. package/package/v-map/ol/v3/components/layer/web/gaode.vue.d.ts +2 -0
  47. package/package/v-map/ol/v3/components/layer/wms/index.vue.d.ts +7 -0
  48. package/package/v-map/ol/v3/components/popup/index.vue.d.ts +30 -0
  49. package/package/v-map/ol/v3/components/toolbar/bar/index.vue.d.ts +41 -0
  50. package/package/v-map/ol/v3/components/toolbar/baseBar.d.ts +20 -0
  51. package/package/v-map/ol/v3/components/toolbar/baseLayer/index.vue.d.ts +10 -0
  52. package/package/v-map/ol/v3/components/toolbar/drawer/index.vue.d.ts +18 -0
  53. package/package/v-map/ol/v3/components/toolbar/layerManager/index.vue.d.ts +27 -0
  54. package/package/v-map/ol/v3/components/toolbar/mapBar.d.ts +6 -0
  55. package/package/v-map/ol/v3/components/widgets/MapStatus.vue.d.ts +32 -0
  56. package/package/v-map/public/use/theme.d.ts +1 -0
  57. package/package/v-map/public/use/useEvent.d.ts +1 -0
  58. package/package/v-map/public/use/usePosition.d.ts +21 -0
  59. package/package/v-map/public/utils/advanced/canvas2image.d.ts +30 -0
  60. package/package/v-map/public/utils/advanced/export-excel.d.ts +30 -0
  61. package/package/v-map/public/utils/advanced/layout.d.ts +10 -0
  62. package/package/v-map/public/utils/base/prototype.d.ts +0 -0
  63. package/package/v-map/public/utils/date-formatter.d.ts +56 -0
  64. package/package/v-map/public/utils/extend.d.ts +1 -0
  65. package/package/v-map/public/utils/map/arcgis.d.ts +1 -0
  66. package/package/v-map/public/utils/map/cesium.d.ts +13 -0
  67. package/package/v-map/public/utils/map/index.d.ts +12 -0
  68. package/package/v-map/public/utils/map/kriging.d.ts +2 -0
  69. package/package/v-map/public/utils/map/ogc.d.ts +12 -0
  70. package/package/v-map/public/utils/map/tif.d.ts +12 -0
  71. package/package/v-map/public/utils/mix.d.ts +3 -0
  72. package/package/v-map/public/utils/open-window.d.ts +8 -0
  73. package/package/v-map/public/utils/scroll-to.d.ts +6 -0
  74. package/package/v-map/public/utils/web-layout-controller.d.ts +11 -0
  75. package/package/v-map/shims.d.ts +29 -0
  76. package/package/v-openlayers.css +1 -1
  77. package/package/v-openlayers.d.ts +23 -22
  78. package/package/v-openlayers.mjs +197 -260
  79. package/package.json +1 -1
@@ -0,0 +1,50 @@
1
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
2
+ export default _default;
3
+ type __VLS_WithTemplateSlots<T, S> = T & (new () => {
4
+ $slots: S;
5
+ });
6
+ declare const __VLS_component: import('vue').DefineComponent<{}, {
7
+ handleMin: () => void;
8
+ handleRestore: () => void;
9
+ $emit: (event: "close" | "resize", ...args: any[]) => void;
10
+ title: string;
11
+ theme: string;
12
+ contentHeight: string | number;
13
+ closeable: boolean;
14
+ minmax: boolean;
15
+ minimize: boolean;
16
+ maximize: boolean;
17
+ initWidth?: number;
18
+ initHeight?: string | number;
19
+ initTop?: number;
20
+ initBottom?: number;
21
+ initLeft?: number;
22
+ initRight?: number;
23
+ $props: {
24
+ readonly title?: string;
25
+ readonly theme?: string;
26
+ readonly contentHeight?: string | number;
27
+ readonly closeable?: boolean;
28
+ readonly minmax?: boolean;
29
+ readonly minimize?: boolean;
30
+ readonly maximize?: boolean;
31
+ readonly initWidth?: number;
32
+ readonly initHeight?: string | number;
33
+ readonly initTop?: number;
34
+ readonly initBottom?: number;
35
+ readonly initLeft?: number;
36
+ readonly initRight?: number;
37
+ };
38
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
39
+ draggableRef: HTMLDivElement;
40
+ }, HTMLDivElement>;
41
+ type __VLS_TemplateResult = {
42
+ attrs: Partial<{}>;
43
+ slots: {
44
+ default?(_: {}): any;
45
+ };
46
+ refs: {
47
+ draggableRef: HTMLDivElement;
48
+ };
49
+ rootEl: HTMLDivElement;
50
+ };
@@ -0,0 +1,10 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {
2
+ $emit: (event: "close", ...args: any[]) => void;
3
+ title: string;
4
+ properties: unknown[];
5
+ $props: {
6
+ readonly title?: string;
7
+ readonly properties?: unknown[];
8
+ };
9
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
10
+ export default _default;
@@ -0,0 +1,40 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ iconClass: {
3
+ type: StringConstructor;
4
+ required: true;
5
+ };
6
+ className: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ size: {
11
+ type: NumberConstructor;
12
+ default: number;
13
+ };
14
+ color: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
19
+ iconClass: {
20
+ type: StringConstructor;
21
+ required: true;
22
+ };
23
+ className: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ size: {
28
+ type: NumberConstructor;
29
+ default: number;
30
+ };
31
+ color: {
32
+ type: StringConstructor;
33
+ default: string;
34
+ };
35
+ }>> & Readonly<{}>, {
36
+ color: string;
37
+ className: string;
38
+ size: number;
39
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
40
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export default svgMap;
2
+ declare const svgMap: {};
@@ -0,0 +1,18 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {
2
+ $emit: (event: "on-handler", ...args: any[]) => void;
3
+ showIndex: boolean;
4
+ showPagination: boolean;
5
+ showHeader: boolean;
6
+ tableData: unknown[];
7
+ tableHeader: unknown[];
8
+ tableHandler: unknown[];
9
+ $props: {
10
+ readonly showIndex?: boolean;
11
+ readonly showPagination?: boolean;
12
+ readonly showHeader?: boolean;
13
+ readonly tableData?: unknown[];
14
+ readonly tableHeader?: unknown[];
15
+ readonly tableHandler?: unknown[];
16
+ };
17
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
18
+ export default _default;
@@ -0,0 +1,29 @@
1
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
2
+ export default _default;
3
+ type __VLS_WithTemplateSlots<T, S> = T & (new () => {
4
+ $slots: S;
5
+ });
6
+ declare const __VLS_component: import('vue').DefineComponent<{}, {
7
+ drag: boolean;
8
+ accept: string;
9
+ onError?: Function;
10
+ onSuccess?: Function;
11
+ $props: {
12
+ readonly drag?: boolean;
13
+ readonly accept?: string;
14
+ readonly onError?: Function;
15
+ readonly onSuccess?: Function;
16
+ };
17
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
18
+ refUploadFile: unknown;
19
+ }, any>;
20
+ type __VLS_TemplateResult = {
21
+ attrs: Partial<{}>;
22
+ slots: {
23
+ default?(_: {}): any;
24
+ };
25
+ refs: {
26
+ refUploadFile: unknown;
27
+ };
28
+ rootEl: any;
29
+ };
@@ -0,0 +1,5 @@
1
+ export default WKT2WKID;
2
+ declare const WKT2WKID: {
3
+ wkt: string;
4
+ wkid: string;
5
+ }[];
@@ -197,7 +197,7 @@ declare const V_MAP_GLOBAL: {
197
197
  BD_VEC: string;
198
198
  };
199
199
  };
200
- export declare const isSyncing: import("vue").Ref<boolean, boolean>;
200
+ export declare const isSyncing: import('vue').Ref<boolean, boolean>;
201
201
  export declare const setIsSyncing: (val: any) => void;
202
202
  /**
203
203
  * @description: 切换地图时调用,用于同步地图视图
@@ -0,0 +1,7 @@
1
+ import { default as OlHandler } from './lib/business/OlHandler';
2
+ /**
3
+ * openlayer
4
+ * @returns openlayer
5
+ */
6
+ export declare function getOlHandler(domid?: string): OlHandler;
7
+ export { default as OlHandler } from './lib/business/OlHandler';
@@ -1,5 +1,5 @@
1
1
  import { Vector as VectorLayer } from 'ol/layer';
2
- import VMap from '../core/VMap';
2
+ import { default as VMap } from '../core/VMap';
3
3
  /**
4
4
  * @description: ol业务类
5
5
  */
@@ -12,8 +12,9 @@ export default class OlHandler extends VMap {
12
12
  layerIdForAllStations: string;
13
13
  svgMap: any;
14
14
  constructor(target?: string);
15
- getMap(): import("ol").Map;
15
+ getMap(): import('ol').Map;
16
16
  setMap(map: any): void;
17
+ getPrj(): string;
17
18
  /**
18
19
  * 底图切换切换
19
20
  * @param {*} layerIds 图层ids
@@ -44,6 +45,6 @@ export default class OlHandler extends VMap {
44
45
  stroke: {};
45
46
  fill: {};
46
47
  };
47
- map?: import("ol").Map;
48
+ map?: import('ol').Map;
48
49
  }): VectorLayer<any>;
49
50
  }
@@ -0,0 +1,40 @@
1
+ export default mapConfig;
2
+ declare namespace mapConfig {
3
+ let prj: string;
4
+ namespace defaultView {
5
+ let projection: string;
6
+ let center: number[];
7
+ let zoom: number;
8
+ let minZoom: number;
9
+ let maxZoom: number;
10
+ }
11
+ let defaultBaseLayerId: string;
12
+ let baseLayers: {
13
+ id: string;
14
+ label: string;
15
+ type: string;
16
+ children: {
17
+ id: string;
18
+ label: string;
19
+ visible: boolean;
20
+ type: string;
21
+ image: string;
22
+ url: string;
23
+ }[];
24
+ }[];
25
+ let toolbar: ({
26
+ label: string;
27
+ image: string;
28
+ key: string;
29
+ visible: boolean;
30
+ hasChild?: undefined;
31
+ handler?: undefined;
32
+ } | {
33
+ label: string;
34
+ image: string;
35
+ key: string;
36
+ hasChild: boolean;
37
+ visible: boolean;
38
+ handler: string;
39
+ })[];
40
+ }
@@ -1,26 +1,25 @@
1
- import 'ol/ol.css';
2
- import Map from 'ol/Map';
3
- import VectorLayer from 'ol/layer/Vector.js';
4
- import Feature from 'ol/Feature';
5
- import { Geometry, LineString, Polygon } from 'ol/geom';
1
+ import { default as Map } from 'ol/Map';
2
+ import { default as VectorLayer } from 'ol/layer/Vector.js';
3
+ import { default as Feature } from 'ol/Feature';
4
+ import { Geometry, LineString, MultiPolygon, Polygon } from 'ol/geom';
6
5
  import { Style } from 'ol/style';
7
6
  import { GeoJSON } from 'ol/format.js';
8
7
  import { Extent } from 'ol/extent';
9
- import LayerHandler from './plugins/LayerHandler';
10
- import DrawHandler from './plugins/DrawHandler';
11
- import DrawConditions from './plugins/DrawConditions';
12
- import WktHandler from './plugins/WktHandler';
13
- import GeojsonHandler from './plugins/GeojsonHandler';
14
- import MeasureHandler from './plugins/MeasureHandler';
15
- import WfsHandler from './plugins/WfsHandler';
16
- import InteractionHandler from './plugins/InteractionHandler';
17
- import WmsHandler from './plugins/WmsHandler';
18
- import GeometryHandler from './plugins/GeometryHandler';
19
- import * as TransHandler from './plugins/TransformHandler';
20
- import * as StyleHandler from './plugins/StyleHandler';
8
+ import { default as LayerHandler } from './plugins/LayerHandler';
9
+ import { default as DrawHandler } from './plugins/DrawHandler';
10
+ import { default as DrawConditions } from './plugins/DrawConditions';
11
+ import { default as WktHandler } from './plugins/WktHandler';
12
+ import { default as GeojsonHandler } from './plugins/GeojsonHandler';
13
+ import { default as MeasureHandler } from './plugins/MeasureHandler';
14
+ import { default as WfsHandler } from './plugins/WfsHandler';
15
+ import { default as InteractionHandler } from './plugins/InteractionHandler';
16
+ import { default as WmsHandler } from './plugins/WmsHandler';
17
+ import { default as GeometryHandler } from './plugins/GeometryHandler';
21
18
  import { StyleOptions } from './plugins/StyleHandler';
22
19
  import { StyleLike } from 'ol/style/Style.js';
23
20
  import { IMapConfig } from '../../types/types';
21
+ import * as TransHandler from './plugins/TransformHandler';
22
+ import * as StyleHandler from './plugins/StyleHandler';
24
23
  interface MapOptions {
25
24
  controls?: {
26
25
  scaleLine?: boolean;
@@ -96,7 +95,7 @@ declare class VMap {
96
95
  /**
97
96
  * @description: Cesium同步状态
98
97
  */
99
- isSyncing: import("vue").Ref<boolean, boolean>;
98
+ isSyncing: import('vue').Ref<boolean, boolean>;
100
99
  cesiumViewer: any;
101
100
  /**
102
101
  * @description: 高亮图层
@@ -209,13 +208,13 @@ declare class VMap {
209
208
  * @param {*} options 可选参数
210
209
  * @returns overlay
211
210
  */
212
- addOverlay(container: any, options: any): import("ol").Overlay;
211
+ addOverlay(container: any, options: any): import('ol').Overlay;
213
212
  /**
214
213
  * 自定义创建overlay
215
214
  * @param {*} param0
216
215
  * @returns overlay
217
216
  */
218
- createOverlay(_options: IOverlayOptions): import("ol").Overlay;
217
+ createOverlay(_options: IOverlayOptions): import('ol').Overlay;
219
218
  /**
220
219
  * 删除所有overlay
221
220
  */
@@ -243,7 +242,7 @@ declare class VMap {
243
242
  * @param prj 坐标系
244
243
  * @returns 图层
245
244
  */
246
- getLayerByType(options: any, prj?: string): any;
245
+ getLayerByType(_options: any, prj?: string): any;
247
246
  parseLayer(): void;
248
247
  testURL(url: any): Promise<boolean>;
249
248
  parseLayerOptions(o: any): void;
@@ -283,7 +282,7 @@ declare class VMap {
283
282
  * @param {*} id id
284
283
  * @returns
285
284
  */
286
- getLayerById(id: any): import("ol/layer/Base").default | VectorLayer<Feature<Geometry>> | import("ol/layer").Layer<import("ol/source").Source, import("ol/renderer/Layer").default<any>>;
285
+ getLayerById(id: any): import('ol/layer/Base').default | VectorLayer<Feature<Geometry>> | import('ol/layer').Layer<import('ol/source').Source, import('ol/renderer/Layer').default<any>>;
287
286
  /**
288
287
  * 通过id删除图层
289
288
  * @param {*} id 图层id
@@ -513,7 +512,7 @@ declare class VMap {
513
512
  * @param {*} polygon 面几何对象 Polygon|WKT|GeoJSON
514
513
  * @returns 中心点坐标 [x,y]
515
514
  */
516
- getCenterByPolygon(polygon: Polygon | string | GeoJSON): import("ol/coordinate").Coordinate;
515
+ getCenterByPolygon(polygon: Polygon | string | GeoJSON | MultiPolygon): import('ol/coordinate').Coordinate;
517
516
  /**
518
517
  * 获取线中心点
519
518
  * @param {*} linestring 几何对象 LineString|WKT|GeoJSON
@@ -1,9 +1,8 @@
1
- import { Map } from 'ol';
1
+ import { Map, Feature } from 'ol';
2
2
  import { Modify } from 'ol/interaction';
3
3
  import { Vector as VectorSource } from 'ol/source';
4
4
  import { Vector as VectorLayer } from 'ol/layer';
5
5
  import { LineString, Geometry } from 'ol/geom';
6
- import { Feature } from 'ol';
7
6
  /**
8
7
  * 绘制类型枚举
9
8
  */
@@ -120,7 +119,7 @@ declare class DrawHandler {
120
119
  * 构造函数
121
120
  * @param map 地图实例
122
121
  */
123
- constructor(map?: Map | null);
122
+ constructor(map?: Map | null, prj?: string | null);
124
123
  /**
125
124
  * 获取绘制类型枚举
126
125
  */
@@ -1,8 +1,7 @@
1
- import VectorLayer from 'ol/layer/Vector';
1
+ import { default as VectorLayer } from 'ol/layer/Vector';
2
2
  import { Style } from 'ol/style';
3
- import { Feature } from 'ol';
3
+ import { Feature, Map } from 'ol';
4
4
  import { Geometry } from 'ol/geom';
5
- import { Map } from 'ol';
6
5
  /**
7
6
  * 要素样式选项接口
8
7
  */
@@ -1,7 +1,7 @@
1
- import GeoJSON from 'ol/format/GeoJSON';
2
- import VectorLayer from 'ol/layer/Vector';
1
+ import { default as GeoJSON } from 'ol/format/GeoJSON';
2
+ import { default as VectorLayer } from 'ol/layer/Vector';
3
3
  import { Style } from 'ol/style';
4
- import Feature from 'ol/Feature';
4
+ import { default as Feature } from 'ol/Feature';
5
5
  import { Geometry } from 'ol/geom';
6
6
  /**
7
7
  * GeoJSON处理选项接口
@@ -1,8 +1,8 @@
1
1
  import { Polygon, Point } from 'ol/geom';
2
2
  import { Style } from 'ol/style';
3
- import Feature from 'ol/Feature';
4
- import VectorLayer from 'ol/layer/Vector';
5
- import Map from 'ol/Map';
3
+ import { default as Feature } from 'ol/Feature';
4
+ import { default as VectorLayer } from 'ol/layer/Vector';
5
+ import { default as Map } from 'ol/Map';
6
6
  /**
7
7
  * 点坐标接口
8
8
  */
@@ -1,10 +1,10 @@
1
1
  import { Snap } from 'ol/interaction';
2
- import Map from 'ol/Map';
3
- import VectorLayer from 'ol/layer/Vector';
4
- import VectorSource from 'ol/source/Vector';
5
- import Feature from 'ol/Feature';
2
+ import { default as Map } from 'ol/Map';
3
+ import { default as VectorLayer } from 'ol/layer/Vector';
4
+ import { default as VectorSource } from 'ol/source/Vector';
5
+ import { default as Feature } from 'ol/Feature';
6
6
  import { Geometry } from 'ol/geom';
7
- import Collection from 'ol/Collection';
7
+ import { default as Collection } from 'ol/Collection';
8
8
  /**
9
9
  * 交互处理器配置选项
10
10
  */
@@ -1,22 +1,20 @@
1
- import Map from 'ol/Map';
2
- import Layer from 'ol/layer/Layer';
3
- import TileLayer from 'ol/layer/Tile';
1
+ import { default as Map } from 'ol/Map';
2
+ import { default as Layer } from 'ol/layer/Layer';
3
+ import { default as TileLayer } from 'ol/layer/Tile';
4
4
  import { Geometry } from 'ol/geom';
5
5
  import { ImageArcGISRest, TileArcGISRest } from 'ol/source';
6
- import TileWMS from 'ol/source/TileWMS';
7
- import ImageWMS from 'ol/source/ImageWMS';
8
- import XYZ from 'ol/source/XYZ';
9
- import WMTS from 'ol/source/WMTS';
10
- import VectorTileLayer from 'ol/layer/VectorTile.js';
11
- import { Heatmap as HeatmapLayer } from 'ol/layer';
12
- import { Vector as VectorLayer } from 'ol/layer';
13
- import { Image as ImageLayer } from 'ol/layer';
14
- import Overlay from 'ol/Overlay';
15
- import Feature from 'ol/Feature';
16
- import WebGLTileLayer from 'ol/layer/WebGLTile.js';
6
+ import { default as TileWMS } from 'ol/source/TileWMS';
7
+ import { default as ImageWMS } from 'ol/source/ImageWMS';
8
+ import { default as XYZ } from 'ol/source/XYZ';
9
+ import { default as WMTS } from 'ol/source/WMTS';
10
+ import { default as VectorTileLayer } from 'ol/layer/VectorTile.js';
11
+ import { Heatmap as HeatmapLayer, Vector as VectorLayer, Image as ImageLayer } from 'ol/layer';
12
+ import { default as Overlay } from 'ol/Overlay';
13
+ import { default as Feature } from 'ol/Feature';
14
+ import { default as WebGLTileLayer } from 'ol/layer/WebGLTile.js';
17
15
  import { Style } from 'ol/style';
18
16
  import { StyleOptions } from './StyleHandler';
19
- import BaseLayer from 'ol/layer/Base.js';
17
+ import { default as BaseLayer } from 'ol/layer/Base.js';
20
18
  import { StyleFunction, StyleLike } from 'ol/style/Style.js';
21
19
  interface LayerOptions {
22
20
  id?: string;
@@ -128,6 +126,7 @@ export default class LayerHandler {
128
126
  * 根据投影坐标系创建WMTS图层
129
127
  * @param {string} prj - 投影坐标系
130
128
  * @param {Object} options.url - WMTS服务URL
129
+ * @param {Object} options.extent - WMTS服务范围 经纬度
131
130
  * @param {Object} options.params - WMTS参数对象
132
131
  * @param {Object} options.params.layer - WMTS图层ID
133
132
  * @param {Object} options.params.matrixSet - WMTS矩阵集ID
@@ -138,6 +137,13 @@ export default class LayerHandler {
138
137
  prj: any;
139
138
  options: any;
140
139
  }): TileLayer<WMTS>;
140
+ convertExtentTo3857(extentObj: any, sourceCrs?: any): {
141
+ minx: number;
142
+ miny: number;
143
+ maxx: number;
144
+ maxy: number;
145
+ crs: string;
146
+ };
141
147
  getWmtsExtent(extent: any): any;
142
148
  /**
143
149
  * xml
@@ -277,10 +283,10 @@ export default class LayerHandler {
277
283
  * @returns {Array} 抽稀后的点集
278
284
  */
279
285
  douglasPeuckerSimplify(points: any, threshold: any, options?: {}): any;
280
- getMvtOfficial(options: any): VectorTileLayer<import("ol/render/Feature").default>;
286
+ getMvtOfficial(options: any): VectorTileLayer<import('ol/render/Feature').default>;
281
287
  getMatrixIds(matrixIds: any, prj: any): any[];
282
288
  getMvt(options: any): VectorTileLayer<any>;
283
- getMvtGeography(options: any): VectorTileLayer<import("ol/render/Feature").default>;
289
+ getMvtGeography(options: any): VectorTileLayer<import('ol/render/Feature').default>;
284
290
  /**
285
291
  * 获取Mapbox矢量瓦片图层
286
292
  * @param options Mapbox矢量瓦片图层选项
@@ -1,4 +1,4 @@
1
- import Map from "ol/Map";
1
+ import { default as Map } from 'ol/Map';
2
2
  /**
3
3
  * @description 测量工具类
4
4
  * 提供测量线、测量面、清除结果等功能
@@ -0,0 +1,3 @@
1
+ export default class ProjectionHandler {
2
+ constructor();
3
+ }
@@ -1,6 +1,6 @@
1
1
  import { Style } from 'ol/style';
2
2
  import { StyleLike, StyleFunction } from 'ol/style/Style.js';
3
- import Feature from 'ol/Feature';
3
+ import { default as Feature } from 'ol/Feature';
4
4
  import { Geometry } from 'ol/geom';
5
5
  interface CircleOptions {
6
6
  color?: string;
@@ -1,4 +1,4 @@
1
- import Map from 'ol/Map';
1
+ import { default as Map } from 'ol/Map';
2
2
  import { Circle } from 'ol/geom';
3
3
  /**
4
4
  * 将米转换为半径(基于地图投影单位)
@@ -45,17 +45,17 @@ export default class WMTSExplorer {
45
45
  * 获取图层的 extent
46
46
  */
47
47
  getLayerExtent(layerIdentifier: any, targetCrs?: string): {
48
- extent: import("ol/extent").Extent;
48
+ extent: import('ol/extent').Extent;
49
49
  crs: string;
50
50
  originalExtent: any;
51
51
  originalCrs: any;
52
- center: import("ol/coordinate").Coordinate;
52
+ center: import('ol/coordinate').Coordinate;
53
53
  width: number;
54
54
  height: number;
55
55
  } | {
56
56
  extent: any;
57
57
  crs: any;
58
- center: import("ol/coordinate").Coordinate;
58
+ center: import('ol/coordinate').Coordinate;
59
59
  width: number;
60
60
  height: number;
61
61
  originalExtent?: undefined;
@@ -84,17 +84,17 @@ export default class WMTSExplorer {
84
84
  wrapX: any;
85
85
  metadata: {
86
86
  extent: {
87
- extent: import("ol/extent").Extent;
87
+ extent: import('ol/extent').Extent;
88
88
  crs: string;
89
89
  originalExtent: any;
90
90
  originalCrs: any;
91
- center: import("ol/coordinate").Coordinate;
91
+ center: import('ol/coordinate').Coordinate;
92
92
  width: number;
93
93
  height: number;
94
94
  } | {
95
95
  extent: any;
96
96
  crs: any;
97
- center: import("ol/coordinate").Coordinate;
97
+ center: import('ol/coordinate').Coordinate;
98
98
  width: number;
99
99
  height: number;
100
100
  originalExtent?: undefined;
@@ -1,4 +1,4 @@
1
- import Filter from 'ol/format/filter/Filter.js';
1
+ import { default as Filter } from 'ol/format/filter/Filter.js';
2
2
  interface RequestFeaturesByFilterOptions {
3
3
  filter: Filter;
4
4
  featureNS: string;
@@ -1,6 +1,6 @@
1
- import WKT from 'ol/format/WKT';
2
- import VectorLayer from 'ol/layer/Vector';
3
- import Feature from 'ol/Feature';
1
+ import { default as WKT } from 'ol/format/WKT';
2
+ import { default as VectorLayer } from 'ol/layer/Vector';
3
+ import { default as Feature } from 'ol/Feature';
4
4
  import { Geometry } from 'ol/geom';
5
5
  import { Style } from 'ol/style';
6
6
  interface WktLayerOptions {
@@ -1,6 +1,6 @@
1
- import Map from 'ol/Map';
2
- import TileLayer from 'ol/layer/Tile';
3
- import TileWMS from 'ol/source/TileWMS';
1
+ import { default as Map } from 'ol/Map';
2
+ import { default as TileLayer } from 'ol/layer/Tile';
3
+ import { default as TileWMS } from 'ol/source/TileWMS';
4
4
  /**
5
5
  * @description: wms工具类
6
6
  */
@@ -1,3 +1,3 @@
1
+ import { default as TileImage } from 'ol/source/TileImage';
2
+ import { default as TileLayer } from 'ol/layer/Tile';
1
3
  export function getBaiduLayer(options?: {}): TileLayer<TileImage>;
2
- import TileImage from 'ol/source/TileImage';
3
- import TileLayer from 'ol/layer/Tile';
@@ -0,0 +1,18 @@
1
+ export namespace dataChazhi {
2
+ let features: {
3
+ attributes: {
4
+ FID: number;
5
+ id: number;
6
+ name: string;
7
+ x: number;
8
+ y: number;
9
+ z: number;
10
+ xu: number;
11
+ yu: number;
12
+ };
13
+ geometry: {
14
+ x: number;
15
+ y: number;
16
+ };
17
+ }[];
18
+ }