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 +1 -1
- package/dist/MyOl.js +1 -1
- package/package.json +4 -1
package/dist/MyOl.d.ts
CHANGED
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
|
-
|
|
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.
|
|
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
|
}
|