cd-mapgis 1.1.17 → 1.1.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cd-mapgis",
3
- "version": "1.1.17",
3
+ "version": "1.1.18",
4
4
  "main": "./src/index.js",
5
5
  "types": "./src/index.d.ts",
6
6
  "type": "module",
package/src/InnerUtil.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import Polygon from 'ol/geom/Polygon.js';
2
- import { WKT } from 'ol/format';
2
+ import { WKT } from 'ol/format.js';
3
3
  import MapView from './MapView.js';
4
4
 
5
5
  export default class InnerUtil {
package/src/LayerUtil.js CHANGED
@@ -14,7 +14,7 @@ import VectorLayer from 'ol/layer/Vector.js';
14
14
  import StyleUtil from './StyleUtil.js';
15
15
  import LineString from 'ol/geom/LineString.js';
16
16
  import Polygon from 'ol/geom/Polygon.js';
17
- import { WKT } from 'ol/format';
17
+ import { WKT } from 'ol/format.js';
18
18
 
19
19
  /**
20
20
  * 图层工具
package/src/MapView.js CHANGED
@@ -5,7 +5,7 @@ import StyleUtil from './StyleUtil.js';
5
5
  import MapDrawUtil from './MapDrawUtil.js';
6
6
  import SwipeUtil from './SwipeUtil.js';
7
7
  import DragPan from 'ol/interaction/DragPan.js';
8
- import * as OlInteraction from 'ol/interaction';
8
+ import * as OlInteraction from 'ol/interaction.js';
9
9
 
10
10
  /**
11
11
  * ol地图显示
package/test-om.js CHANGED
@@ -6,6 +6,6 @@ console.log('OM 类型:', typeof OM);
6
6
  console.log('OM 类定义:', OM);
7
7
 
8
8
  // 测试调用静态方法(不执行实际初始化,只检查方法是否存在)
9
- console.log('OM.initMap 存在:', typeof OM.initMap === 'function');
9
+ console.log('OM.initMap 存在:', typeof OM.initParam === 'function');
10
10
 
11
11
  console.log('测试完成,请检查输出结果。');