Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gk
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
micro_app
gk
Commits
da65f50e
Commit
da65f50e
authored
Jan 21, 2026
by
daniel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(road-new): 轨迹优化
parent
2bad5cc2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
road-new.js
src/main/webapp/static/js/road-new.js
+11
-2
No files found.
src/main/webapp/static/js/road-new.js
View file @
da65f50e
...
@@ -464,6 +464,10 @@ function getPlaceMakers(roadId, pathId) {
...
@@ -464,6 +464,10 @@ function getPlaceMakers(roadId, pathId) {
$
(
"#editCpDisBtn"
).
css
(
"display"
,
"none"
);
$
(
"#editCpDisBtn"
).
css
(
"display"
,
"none"
);
var
editCpDisHtml
=
""
;
var
editCpDisHtml
=
""
;
if
(
content
.
length
==
0
)
{
layer
.
msg
(
"没有标记点,请导入有标记点的路线,以免影响您的后续使用!"
);
return
}
if
(
data
.
content
.
length
==
0
)
{
if
(
data
.
content
.
length
==
0
)
{
layer
.
msg
(
"没有标记点,请导入有标记点的路线,以免影响您的后续使用!"
);
layer
.
msg
(
"没有标记点,请导入有标记点的路线,以免影响您的后续使用!"
);
return
return
...
@@ -473,7 +477,13 @@ function getPlaceMakers(roadId, pathId) {
...
@@ -473,7 +477,13 @@ function getPlaceMakers(roadId, pathId) {
html
:
'<div class="cp-div"><span>'
+
e
.
name
+
'</span></div>'
,
html
:
'<div class="cp-div"><span>'
+
e
.
name
+
'</span></div>'
,
iconSize
:
30
iconSize
:
30
});
});
var
marker
=
L
.
marker
([
Number
(
e
.
latitude
),
Number
(
e
.
longitude
)]).
setIcon
(
myIcon1
);
let
latitude
=
Number
(
e
.
latitude
)
let
longitude
=
Number
(
e
.
longitude
)
if
(
latitude
>
longitude
)
{
latitude
=
longitude
;
longitude
=
e
.
latitude
}
var
marker
=
L
.
marker
([
latitude
,
longitude
]).
setIcon
(
myIcon1
);
marker
.
addTo
(
map
.
instance
);
marker
.
addTo
(
map
.
instance
);
layers
.
push
(
marker
);
layers
.
push
(
marker
);
$
(
'.markers'
).
append
(
'<div data-checkpointId="'
+
e
.
checkpointId
+
'" class="marker"><label for="" class="marker-name">'
+
e
.
name
+
'</label>
\
n'
+
$
(
'.markers'
).
append
(
'<div data-checkpointId="'
+
e
.
checkpointId
+
'" class="marker"><label for="" class="marker-name">'
+
e
.
name
+
'</label>
\
n'
+
...
@@ -499,7 +509,6 @@ function getPlaceMakers(roadId, pathId) {
...
@@ -499,7 +509,6 @@ function getPlaceMakers(roadId, pathId) {
' </div>'
;
' </div>'
;
}
}
}
}
});
});
// 初始化智能步道数据
// 初始化智能步道数据
initCpDis
(
editCpDisHtml
,
roadId
,
pathId
);
initCpDis
(
editCpDisHtml
,
roadId
,
pathId
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment