ry-vue-map 0.3.1 → 0.3.2

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ry-vue-map",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "private": false,
5
5
  "main": "lib/ryui.umd.min.js",
6
6
  "description": "ry公共组件库",
@@ -214,25 +214,27 @@
214
214
 
215
215
  _setColor(obj){
216
216
  const {color,id} =obj;
217
- if( this.kmlMap.has(this.lastId)){
218
- const kml =this.kmlMap.get(this.lastId);
219
- kml.setPolygonColor([this.lastColor,this.lastColor]);
220
- }
217
+ // if( this.kmlMap.has(this.lastId)){
218
+ // const kml =this.kmlMap.get(this.lastId);
219
+ // kml.setPolygonColor([this.lastColor,this.lastColor]);
220
+ // }
221
221
  if(this.kmlMap.has(id)){
222
222
  const kml =this.kmlMap.get(id);
223
223
  kml.setPolygonColor([color,color]);
224
224
 
225
225
  }
226
- const _obj=this.modelArr.find(r=> r.id=id);
227
- if(_obj){
228
- this.lastId=_obj.id;
229
- this.lastColor=_obj.stroke;
230
- }
226
+ // const _obj=this.modelArr.find(r=> r.id=id);
227
+ // if(_obj){
228
+ // this.lastId=_obj.id;
229
+ // this.lastColor=_obj.stroke;
230
+ // }
231
231
  this._setZoom();
232
- if(this.bboxMapGCJ02.has(id)){
232
+ },
233
+ setCenter(id){
234
+ if(this.bboxMapGCJ02.has(id)){
233
235
  const bbox=this.gpsType == 1 ? this.bboxMapGCJ02.get(id) : this.bboxMap.get(id);
234
236
  this.setFitFist(bbox);
235
- }
237
+ }
236
238
  },
237
239
 
238
240
  showAll() {