xy-map 1.0.30 → 1.0.32

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xy-map",
3
- "version": "1.0.30",
3
+ "version": "1.0.32",
4
4
  "description": "地图组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/index.js CHANGED
@@ -67,6 +67,11 @@ import {
67
67
  mapHoverHtml
68
68
  } from './util/mapHoverHtml'
69
69
 
70
+ import {
71
+ GeoAddress,
72
+ Geolocation
73
+ } from './util/gaodeApi'
74
+
70
75
  // 图层操作
71
76
  const mapLayers = {
72
77
  showLayerText,
@@ -106,6 +111,8 @@ const mapTools = {
106
111
  distance,
107
112
  lineCenter,
108
113
  polygonCenter,
114
+ GeoAddress,
115
+ Geolocation,
109
116
  }
110
117
 
111
118
  // 地图事件
@@ -22,7 +22,7 @@
22
22
  </template>
23
23
 
24
24
  <script>
25
- import { mapSdk } from '@/index.js'
25
+ import { mapSdk } from '../../index.js'
26
26
  import drawTools from './index.vue'
27
27
 
28
28
  export default {
@@ -27,9 +27,9 @@
27
27
  </template>
28
28
 
29
29
  <script>
30
- import { mapSdk } from '@/index.js'
31
- import { GeoAddress } from '@/util/gaodeApi.js'
30
+ import { mapSdk } from '../../index.js'
32
31
  import drawTools from './index.vue'
32
+ import { GeoAddress } from '../../util/gaodeApi.js'
33
33
 
34
34
  export default {
35
35
  components: {
@@ -22,7 +22,7 @@
22
22
  </template>
23
23
 
24
24
  <script>
25
- import { mapSdk } from '@/index.js'
25
+ import { mapSdk } from '../../index.js'
26
26
  import drawTools from './index.vue'
27
27
 
28
28
  export default {