Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stwkit
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
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
stw
stwkit
Commits
0ae297fc
Commit
0ae297fc
authored
Oct 20, 2017
by
Tomas Pettersson
🏸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
depth bugfix when missing forcingBoundary
parent
c3c05c78
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
6 deletions
+13
-6
demo/index.html
demo/index.html
+1
-1
src/components/cards.js
src/components/cards.js
+6
-2
src/components/cards.js.map
src/components/cards.js.map
+1
-1
src/components/cards.ts
src/components/cards.ts
+5
-2
No files found.
demo/index.html
View file @
0ae297fc
...
@@ -153,7 +153,7 @@
...
@@ -153,7 +153,7 @@
calculationmode
:
true
,
calculationmode
:
true
,
uncertainty
:
true
uncertainty
:
true
};
};
if
(
forcing
.
features
.
length
>
0
)
properties
[
"
forcing
"
]
=
forcing
;
//
if (forcing.features.length > 0) properties["forcing"] = forcing;
class
SimpleCardControl
extends
STWkit
.
CardControl
{
class
SimpleCardControl
extends
STWkit
.
CardControl
{
constructor
(
options
)
{
super
(
options
);}
constructor
(
options
)
{
super
(
options
);}
...
...
src/components/cards.js
View file @
0ae297fc
...
@@ -257,8 +257,12 @@ var STWkit;
...
@@ -257,8 +257,12 @@ var STWkit;
self
.
forcingBoundary
.
addListener
(
self
.
control
.
layers
);
self
.
forcingBoundary
.
addListener
(
self
.
control
.
layers
);
}
}
self
.
control
.
showTable
();
self
.
control
.
showTable
();
for
(
var
i
=
0
;
i
<
coordinates
.
length
;
i
++
)
for
(
var
i
=
0
;
i
<
coordinates
.
length
;
i
++
)
{
self
.
positions
.
push
([
coordinates
[
i
][
1
],
coordinates
[
i
][
0
],
self
.
forcingBoundary
.
depth
(
coordinates
[
i
][
1
],
coordinates
[
i
][
0
])]);
var
depth
=
0
;
if
(
self
.
forcingBoundary
)
depth
=
self
.
forcingBoundary
.
depth
(
coordinates
[
i
][
1
],
coordinates
[
i
][
0
]);
self
.
positions
.
push
([
coordinates
[
i
][
1
],
coordinates
[
i
][
0
],
depth
]);
}
self
.
positionMaxDepth
=
Math
.
floor
(
self
.
positions
[
0
][
2
]);
self
.
positionMaxDepth
=
Math
.
floor
(
self
.
positions
[
0
][
2
]);
self
.
validate
();
self
.
validate
();
}
}
...
...
src/components/cards.js.map
View file @
0ae297fc
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/components/cards.ts
View file @
0ae297fc
...
@@ -282,8 +282,11 @@ module STWkit {
...
@@ -282,8 +282,11 @@ module STWkit {
self
.
forcingBoundary
.
addListener
(
self
.
control
.
layers
);
self
.
forcingBoundary
.
addListener
(
self
.
control
.
layers
);
}
}
self
.
control
.
showTable
();
self
.
control
.
showTable
();
for
(
var
i
=
0
;
i
<
coordinates
.
length
;
i
++
)
for
(
var
i
=
0
;
i
<
coordinates
.
length
;
i
++
)
{
self
.
positions
.
push
([
coordinates
[
i
][
1
],
coordinates
[
i
][
0
],
self
.
forcingBoundary
.
depth
(
coordinates
[
i
][
1
],
coordinates
[
i
][
0
])]);
var
depth
=
0
;
if
(
self
.
forcingBoundary
)
depth
=
self
.
forcingBoundary
.
depth
(
coordinates
[
i
][
1
],
coordinates
[
i
][
0
])
self
.
positions
.
push
([
coordinates
[
i
][
1
],
coordinates
[
i
][
0
],
depth
]);
}
self
.
positionMaxDepth
=
Math
.
floor
(
self
.
positions
[
0
][
2
]);
self
.
positionMaxDepth
=
Math
.
floor
(
self
.
positions
[
0
][
2
]);
self
.
validate
();
self
.
validate
();
}
}
...
...
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