Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
leaflet-oilspill-control
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
stw
leaflet-oilspill-control
Commits
9c677616
Commit
9c677616
authored
Oct 12, 2017
by
Tomas Pettersson
🏸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed depth bug
parent
721a1541
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
src/leaflet-oilspill-cards.js
src/leaflet-oilspill-cards.js
+3
-0
src/leaflet-oilspill-cards.js.map
src/leaflet-oilspill-cards.js.map
+1
-1
src/leaflet-oilspill-cards.ts
src/leaflet-oilspill-cards.ts
+4
-0
No files found.
src/leaflet-oilspill-cards.js
View file @
9c677616
...
...
@@ -49,6 +49,7 @@ var OSLocation = (function (_super) {
self
.
depthInput
=
L
.
DomUtil
.
create
(
'
input
'
,
'
uk-width-1-4
'
,
depthDiv
);
self
.
depthInput
.
type
=
'
number
'
;
self
.
depthInput
.
value
=
'
0
'
;
self
.
depthInput
.
step
=
'
10
'
;
self
.
depthInput
.
min
=
'
0
'
;
self
.
depthInput
.
onchange
=
function
()
{
self
.
validate
();
...
...
@@ -84,6 +85,7 @@ var OSLocation = (function (_super) {
self
.
obsDateInput
.
value
=
date
;
var
time
=
moment
.
utc
(
observation
.
date
).
format
(
self
.
timeFormat
);
self
.
obsTimeInput
.
value
=
time
;
self
.
depthInput
.
value
=
simulation
.
depth
;
};
OSLocation
.
prototype
.
populateData
=
function
(
geojson
)
{
_super
.
prototype
.
populateData
.
call
(
this
,
geojson
);
...
...
@@ -99,6 +101,7 @@ var OSLocation = (function (_super) {
};
geojson
.
features
[
0
].
properties
[
"
observation
"
]
=
[];
geojson
.
features
[
0
].
properties
[
"
observation
"
].
push
(
observation
);
geojson
.
features
[
0
].
properties
[
"
simulation
"
][
"
depth
"
]
=
self
.
depthInput
.
value
;
};
return
OSLocation
;
}(
STWkit
.
LocationCard
));
...
...
src/leaflet-oilspill-cards.js.map
View file @
9c677616
This diff is collapsed.
Click to expand it.
src/leaflet-oilspill-cards.ts
View file @
9c677616
...
...
@@ -50,6 +50,7 @@ class OSLocation extends STWkit.LocationCard {
self
.
depthInput
=
<
HTMLInputElement
>
L
.
DomUtil
.
create
(
'
input
'
,
'
uk-width-1-4
'
,
depthDiv
);
self
.
depthInput
.
type
=
'
number
'
;
self
.
depthInput
.
value
=
'
0
'
;
self
.
depthInput
.
step
=
'
10
'
;
self
.
depthInput
.
min
=
'
0
'
;
self
.
depthInput
.
onchange
=
function
()
{
...
...
@@ -92,6 +93,7 @@ class OSLocation extends STWkit.LocationCard {
self
.
obsDateInput
.
value
=
date
;
var
time
=
moment
.
utc
(
observation
.
date
).
format
(
self
.
timeFormat
);
self
.
obsTimeInput
.
value
=
time
;
self
.
depthInput
.
value
=
simulation
.
depth
;
}
public
populateData
(
geojson
)
{
...
...
@@ -109,6 +111,8 @@ class OSLocation extends STWkit.LocationCard {
};
geojson
.
features
[
0
].
properties
[
"
observation
"
]
=
[];
geojson
.
features
[
0
].
properties
[
"
observation
"
].
push
(
observation
);
geojson
.
features
[
0
].
properties
[
"
simulation
"
][
"
depth
"
]
=
self
.
depthInput
.
value
;
}
}
...
...
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