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.
- package/lib/ryui.common.js +33 -35
- package/lib/ryui.common.js.gz +0 -0
- package/lib/ryui.umd.js +33 -35
- package/lib/ryui.umd.js.gz +0 -0
- package/lib/ryui.umd.min.js +1 -1
- package/lib/ryui.umd.min.js.gz +0 -0
- package/package.json +1 -1
- package/src/components/maps/ryKMLs/src/index.vue +13 -11
package/lib/ryui.umd.min.js.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -214,25 +214,27 @@
|
|
|
214
214
|
|
|
215
215
|
_setColor(obj){
|
|
216
216
|
const {color,id} =obj;
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
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
|
-
|
|
228
|
-
|
|
229
|
-
|
|
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
|
-
|
|
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() {
|