Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OKU-GIS
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Muhamad
OKU-GIS
Commits
d375e19f
Commit
d375e19f
authored
Jan 31, 2022
by
Manggar Mahardhika
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push jalan input fix
parent
0c7bf91e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
static/js/scripts_js_o.js
static/js/scripts_js_o.js
+4
-1
No files found.
static/js/scripts_js_o.js
View file @
d375e19f
...
@@ -3048,6 +3048,8 @@ $(document).on("click", "#btn_perbaikan_jalan", function() {
...
@@ -3048,6 +3048,8 @@ $(document).on("click", "#btn_perbaikan_jalan", function() {
var
drawControl
=
new
L
.
Control
.
Draw
(
options
);
var
drawControl
=
new
L
.
Control
.
Draw
(
options
);
map_input
.
addControl
(
drawControl
);
map_input
.
addControl
(
drawControl
);
var
partmbd
=
0
map_input
.
on
(
'
draw:created
'
,
function
(
e
)
{
map_input
.
on
(
'
draw:created
'
,
function
(
e
)
{
var
type
=
e
.
layerType
,
var
type
=
e
.
layerType
,
layer
=
e
.
layer
;
layer
=
e
.
layer
;
...
@@ -3066,12 +3068,13 @@ $(document).on("click", "#btn_perbaikan_jalan", function() {
...
@@ -3066,12 +3068,13 @@ $(document).on("click", "#btn_perbaikan_jalan", function() {
}
}
totalDistance
+=
tempLatLng
.
distanceTo
(
latlng
);
totalDistance
+=
tempLatLng
.
distanceTo
(
latlng
);
partmbd
=
totalDistance
+
partmbd
tempLatLng
=
latlng
;
tempLatLng
=
latlng
;
});
});
e
.
layer
.
bindPopup
((
totalDistance
).
toFixed
(
2
));
e
.
layer
.
bindPopup
((
totalDistance
).
toFixed
(
2
));
e
.
layer
.
openPopup
();
e
.
layer
.
openPopup
();
$
(
"
#panjangjalanperbaikan
"
).
val
((
totalDistance
).
toFixed
(
2
));
$
(
"
#panjangjalanperbaikan
"
).
val
((
partmbd
).
toFixed
(
2
));
}
}
editableLayers
.
addLayer
(
layer
);
editableLayers
.
addLayer
(
layer
);
});
});
...
...
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