|
@ -187,9 +187,9 @@ const vueGis = { |
|
|
this.iconTextStyle = iconTextStyle |
|
|
this.iconTextStyle = iconTextStyle |
|
|
this.distanceMax = distanceMax |
|
|
this.distanceMax = distanceMax |
|
|
|
|
|
|
|
|
iconArrays.forEach(item => { |
|
|
// iconArrays.forEach(item => { |
|
|
console.log(item.type, item.urlIndex, item.latitude, item.longitude) |
|
|
// console.log(item.type, item.urlIndex, item.latitude, item.longitude) |
|
|
}); |
|
|
// }); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//初始化地图 |
|
|
//初始化地图 |
|
@ -411,7 +411,7 @@ const vueGis = { |
|
|
computedDistance (lon, lat, max) { |
|
|
computedDistance (lon, lat, max) { |
|
|
let c1 = [2]; c1[0] = lon; c1[1] = lat; |
|
|
let c1 = [2]; c1[0] = lon; c1[1] = lat; |
|
|
let distance = getDistance(this.centerPoint, c1); |
|
|
let distance = getDistance(this.centerPoint, c1); |
|
|
console.log(distance) |
|
|
// console.log(distance) |
|
|
return (distance < max || distance === max) |
|
|
return (distance < max || distance === max) |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -629,7 +629,8 @@ const vueGis = { |
|
|
return feature; |
|
|
return feature; |
|
|
}); |
|
|
}); |
|
|
if (feature) { |
|
|
if (feature) { |
|
|
console.log(feature) |
|
|
|
|
|
|
|
|
// console.log(feature) |
|
|
if (_that.clickType === 'back') { |
|
|
if (_that.clickType === 'back') { |
|
|
|
|
|
|
|
|
_that.$emit('clickFeature', feature) |
|
|
_that.$emit('clickFeature', feature) |
|
|