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 +1 -1
- package/src/InnerUtil.js +1 -1
- package/src/LayerUtil.js +1 -1
- package/src/MapView.js +1 -1
- package/test-om.js +1 -1
package/package.json
CHANGED
package/src/InnerUtil.js
CHANGED
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.
|
|
9
|
+
console.log('OM.initMap 存在:', typeof OM.initParam === 'function');
|
|
10
10
|
|
|
11
11
|
console.log('测试完成,请检查输出结果。');
|