|
@@ -233,9 +233,6 @@ class AuthenticMap {
|
|
|
}
|
|
|
});
|
|
|
mapData.selectPointArr = arr;
|
|
|
- if(arr.length>0){
|
|
|
- this.fit([arr[0].get('featureWkt')])
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
allUnSelect(){
|
|
@@ -387,6 +384,7 @@ class AuthenticMap {
|
|
|
search(form){
|
|
|
const points = this.kmap.getLayerFeatures();
|
|
|
let arr = []
|
|
|
+ let geomWkt = []
|
|
|
points.forEach((feature) => {
|
|
|
let condition = []
|
|
|
if(form.address != ''){
|
|
@@ -421,10 +419,14 @@ class AuthenticMap {
|
|
|
}
|
|
|
if(b){
|
|
|
arr.push(feature.get("id"))
|
|
|
+ geomWkt.push(new WKT().writeGeometry(feature.getGeometry()))
|
|
|
}
|
|
|
});
|
|
|
this.allUnSelect()
|
|
|
this.allSelect(arr)
|
|
|
+ if(geomWkt.length>0){
|
|
|
+ this.fit(geomWkt)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|