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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/OM.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cd-mapgis",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "main": "./src/index.js",
5
5
  "types": "./src/index.d.ts",
6
6
  "type": "module",
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
- let view = OM.view = new View({
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
  /**