Commit 326abd11 by wangzhihui

地图地址修改

1 parent ac43edac
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 'wangzhihui' '1733904062@qq.com' * @Author: 'wangzhihui' '1733904062@qq.com'
* @Date: 2024-11-28 16:37:15 * @Date: 2024-11-28 16:37:15
* @LastEditors: 'wangzhihui' '1733904062@qq.com' * @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2024-12-12 14:23:37 * @LastEditTime: 2025-01-14 17:05:20
* @FilePath: \oEshield\src\utils\mapgeo.js * @FilePath: \oEshield\src\utils\mapgeo.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
...@@ -60,13 +60,14 @@ const MAPGEO = { ...@@ -60,13 +60,14 @@ const MAPGEO = {
// 循环设置地址,修复数组中相同经纬度只设置第一个的bug jack 20230720 // 循环设置地址,修复数组中相同经纬度只设置第一个的bug jack 20230720
function setAddress(row, item) { function setAddress(row, item) {
let _list = data.filter( const {content: {poi_desc, address_detail: {province, city, district, town, street}}} = item
const _list = data.filter(
(k) => (k) =>
fixed6(k.blng) == fixed6(row.lng) && fixed6(k.blat) == fixed6(row.lat) fixed6(k.blng) == fixed6(row.lng) && fixed6(k.blat) == fixed6(row.lat)
); )
_list.map((k) => { _list.map((k) => {
k.transferAddress = item.address; k.transferAddress = province + city + district + town + street + poi_desc
}); })
} }
function geocoderGetAdr(arr, initIdx) { function geocoderGetAdr(arr, initIdx) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!