Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
stw
stwkit
Commits
076dd6da
Commit
076dd6da
authored
Sep 28, 2017
by
Tomas Pettersson
🏸
Browse files
maxDepth
parent
cceefeff
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
src/components/cards.js
View file @
076dd6da
...
...
@@ -210,6 +210,7 @@ var STWkit;
"
tabs
"
:
false
,
"
callback
"
:
function
(
latlngs
,
geojson
)
{
self
.
positions
=
[];
self
.
maxDepth
=
0
;
if
(
latlngs
.
length
>
0
)
{
var
toggleevt
=
document
.
createEvent
(
"
CustomEvent
"
);
toggleevt
.
initCustomEvent
(
'
container:toggleVisibility
'
,
false
,
false
,
{
...
...
@@ -252,6 +253,7 @@ var STWkit;
self
.
control
.
showTable
();
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
])]);
self
.
maxDepth
=
self
.
positions
[
0
][
2
];
self
.
validate
();
}
}
...
...
src/components/cards.js.map
View file @
076dd6da
This diff is collapsed.
Click to expand it.
src/components/cards.ts
View file @
076dd6da
...
...
@@ -108,6 +108,7 @@ module STWkit {
public
datetimeFormat
:
string
;
public
datetimeTFormat
:
string
;
public
positions
:
any
[];
public
maxDepth
:
number
;
public
geometryType
:
string
;
private
forcingBoundary
:
any
;
private
locationDiv
:
HTMLDivElement
;
...
...
@@ -237,6 +238,7 @@ module STWkit {
"
tabs
"
:
false
,
"
callback
"
:
function
(
latlngs
,
geojson
)
{
self
.
positions
=
[];
self
.
maxDepth
=
0
;
if
(
latlngs
.
length
>
0
)
{
var
toggleevt
=
document
.
createEvent
(
"
CustomEvent
"
);
toggleevt
.
initCustomEvent
(
'
container:toggleVisibility
'
,
false
,
false
,
{
...
...
@@ -276,7 +278,8 @@ module STWkit {
}
self
.
control
.
showTable
();
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
])]);
self
.
positions
.
push
([
coordinates
[
i
][
1
],
coordinates
[
i
][
0
],
self
.
forcingBoundary
.
depth
(
coordinates
[
i
][
1
],
coordinates
[
i
][
0
])]);
self
.
maxDepth
=
self
.
positions
[
0
][
2
];
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