ry-vue-map 0.0.9 → 0.1.0

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/README.MD CHANGED
@@ -1,5 +1,5 @@
1
1
  # ryvuemap
2
- ![ryui-version](https://img.shields.io/badge/ryvuemap-0.0.9-green)
2
+ ![ryui-version](https://img.shields.io/badge/ryvuemap-0.1.0-green)
3
3
  > ry公共组件库
4
4
 
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ry-vue-map",
3
- "version": "0.0.9",
3
+ "version": "0.1.0",
4
4
  "private": false,
5
5
  "main": "lib/ryui.umd.min.js",
6
6
  "description": "ry公共组件库",
Binary file
@@ -77,7 +77,7 @@
77
77
  this.bbox = getLngAndLatMaxMin(this.model.coordinates);
78
78
  this.bboxGCJ02= this.convertBBoxGCJ02(this.bbox);
79
79
  }
80
-
80
+
81
81
  this.polygon = createPolygonBoundary(this.model.geo,this.model);
82
82
  this.map.addLayer(this.polygon);
83
83
  if (this.isFit) {
@@ -1,10 +1,13 @@
1
1
  <template>
2
2
  <div class="switch-map" v-if="mapTypeAndLayer && mapTypeAndLayer.length > 0">
3
3
  <div class="top" :style="{height:height + 'px'}">
4
- <p
5
- :class="bottomRight?(isExpand?'el-icon-arrow-left':'el-icon-arrow-right'):(!isExpand?'el-icon-arrow-left':'el-icon-arrow-right')"
6
- @click="changeExpand"
7
- />
4
+ <template v-if="!isDisabled" >
5
+ <p
6
+ :class="bottomRight?(isExpand?'el-icon-arrow-left':'el-icon-arrow-right'):(!isExpand?'el-icon-arrow-left':'el-icon-arrow-right')"
7
+ @click="changeExpand"
8
+ />
9
+ </template>
10
+ <p v-else style="width: 10px;"></p>
8
11
  <ul>
9
12
  <li
10
13
  v-for="(obj,index) in mapTypeCopy"
@@ -173,7 +176,7 @@ export default {
173
176
  this.$emit('changeSwitchMap', {
174
177
  mapType: this.mapTypeActive,
175
178
  layerType: this.mapStyleActive,
176
- isDisabled:false,
179
+ cisDisabled:false,
177
180
  });
178
181
  },
179
182
  mapStyleClick({id}) {
@@ -192,6 +195,8 @@ export default {
192
195
  .switch-map {
193
196
  ul {
194
197
  list-style: none;
198
+ padding: 0;
199
+ margin: 0;
195
200
  }
196
201
 
197
202
  .top {