xy-map 1.0.57 → 1.0.59

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.57",
3
+ "version": "1.0.59",
4
4
  "description": "地图组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/index.js CHANGED
@@ -144,7 +144,7 @@ const mapComponent = {
144
144
  drawPolygon
145
145
  }
146
146
 
147
- export {
147
+ export default {
148
148
  mapSdk,
149
149
  mapLayers,
150
150
  mapDraw,
package/src/map.js CHANGED
@@ -24,8 +24,8 @@ var defaultOptions = {
24
24
  'nav': {
25
25
  'type': 'raster',
26
26
  'tiles': [
27
- // 'https://api.mapbox.com/v4/mapbox.satellite/{z}/{x}/{y}.jpg?access_token=pk.eyJ1IjoiaGo0NjI3NzEzOTYiLCJhIjoiY2w5YzNjOTZvMDF6NDNwb2d6YmJkYWRpMCJ9.-fW-OChGB1oY2DCMO_c8sg',
28
- 'https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}',
27
+ 'https://api.mapbox.com/v4/mapbox.satellite/{z}/{x}/{y}.jpg?access_token=pk.eyJ1IjoiaGo0NjI3NzEzOTYiLCJhIjoiY2w5YzNjOTZvMDF6NDNwb2d6YmJkYWRpMCJ9.-fW-OChGB1oY2DCMO_c8sg',
28
+ // 'https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}',
29
29
  // 'https://map.ynmdgq.com/{z}/{x}/{y}.png'
30
30
  ],
31
31
  'tileSize': 256
package/vue.config.js CHANGED
@@ -17,7 +17,8 @@ module.exports = defineConfig({
17
17
  // proxyon为代理前缀,如果请求中包含该前缀,就走代理
18
18
  '/api': {
19
19
  // 真实的后端服务器地址
20
- target: 'https://www.ynmdgq.com/api',
20
+ target: 'http://39.129.112.151:9091/api',
21
+ // target: 'https://www.ynmdgq.com/api',
21
22
  ws: true,
22
23
  // 控制请求头中的host
23
24
  changeOrigin: true,