Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
oEshield
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 326abd11
authored
Jan 14, 2025
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
地图地址修改
1 parent
ac43edac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
src/utils/mapBgeo.js
src/utils/mapBgeo.js
View file @
326abd1
...
@@ -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: 202
4-12-12 14:23:37
* @LastEditTime: 202
5-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
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment