cd-mapgis 1.0.5 → 1.0.6
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/OM.js +2 -2
package/package.json
CHANGED
package/src/OM.js
CHANGED
|
@@ -24,7 +24,7 @@ class OM {
|
|
|
24
24
|
let zoom = p.zoom ? p.zoom : 16; //地图初始显示级数
|
|
25
25
|
let projection = p.projection ? p.projection : 'EPSG:4326';
|
|
26
26
|
let layers = p.layers ? p.layers : [];
|
|
27
|
-
|
|
27
|
+
OM.view = new View({
|
|
28
28
|
center: center,
|
|
29
29
|
zoom: zoom,
|
|
30
30
|
projection: projection
|
|
@@ -33,7 +33,7 @@ class OM {
|
|
|
33
33
|
target: target,
|
|
34
34
|
controls: [],
|
|
35
35
|
layers: layers,
|
|
36
|
-
view: view,
|
|
36
|
+
view: OM.view,
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
/**
|