my-openlayer 0.1.7 → 0.1.8

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/dist/MyOl.d.ts CHANGED
@@ -48,7 +48,7 @@ export default class MyOl {
48
48
  * @returns MapTools
49
49
  */
50
50
  getTools(): MapTools;
51
- restPosition(duration?: number): void;
51
+ resetPosition(duration?: number): void;
52
52
  /**
53
53
  * 地图定位
54
54
  * @param lgtd 经度
package/dist/MyOl.js CHANGED
@@ -129,7 +129,7 @@ class MyOl {
129
129
  this.mapTools = new MapTools(this.map);
130
130
  return this.mapTools;
131
131
  }
132
- restPosition(duration = 3000) {
132
+ resetPosition(duration = 3000) {
133
133
  if (!this.options.center)
134
134
  return console.error('未设置中心点');
135
135
  this.locationAction(this.options.center[0], this.options.center[1], this.options.zoom, duration);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "my-openlayer",
3
3
  "private": false,
4
- "version": "0.1.7",
4
+ "version": "0.1.8",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -36,5 +36,8 @@
36
36
  "vite-plugin-css-modules": "^0.0.1",
37
37
  "vite-plugin-libcss": "^1.1.1",
38
38
  "vue-tsc": "^2.0.6"
39
+ },
40
+ "peerDependencies": {
41
+ "ol": "^6.15.1"
39
42
  }
40
43
  }