tdt-map-vue2 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.
Files changed (2) hide show
  1. package/lib/BaseMap.vue +2 -2
  2. package/package.json +3 -2
package/lib/BaseMap.vue CHANGED
@@ -6,7 +6,7 @@
6
6
  </template>
7
7
 
8
8
  <script>
9
- import gcoord from "gcoord";
9
+ import Coord from "coord-trans-sdk";
10
10
  import { installTMap } from "./utils/installMap";
11
11
  import installControls from "./utils/controls";
12
12
  import { initTianDiMapMarker } from "./utils/tianDiMapMarker";
@@ -160,7 +160,7 @@ export default {
160
160
  ) {
161
161
  return this.isGcoordEmpty
162
162
  ? arr
163
- : gcoord.transform(arr, gcoord[from], gcoord[to]);
163
+ : Coord[`${from}To${to}`](...arr);
164
164
  },
165
165
 
166
166
  // 初始化地图
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tdt-map-vue2",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "基于天地图封装的组件",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -14,12 +14,13 @@
14
14
  "author": "weiyun",
15
15
  "license": "ISC",
16
16
  "dependencies": {
17
+ "coord-trans-sdk": "^1.0.0",
17
18
  "gcoord": "^1.0.7"
18
19
  },
19
20
  "devDependencies": {
20
21
  "@babel/core": "^7.12.16",
21
- "@vue/cli-service": "~5.0.0",
22
22
  "@vue/cli-plugin-babel": "~5.0.0",
23
+ "@vue/cli-service": "~5.0.0",
23
24
  "vue": "^2.6.11",
24
25
  "vue-router": "^3.5.3",
25
26
  "vue-template-compiler": "^2.6.11"