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
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
Incidents
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
d69c23f3
Commit
d69c23f3
authored
Dec 21, 2017
by
Tomas Pettersson
🏸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed bug with setting forcingmodel
parent
b10a4387
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
11 deletions
+14
-11
demo/index.html
demo/index.html
+5
-4
src/components/cards.js
src/components/cards.js
+4
-3
src/components/cards.js.map
src/components/cards.js.map
+1
-1
src/components/cards.ts
src/components/cards.ts
+4
-3
No files found.
demo/index.html
View file @
d69c23f3
...
...
@@ -134,16 +134,16 @@
"
coordinates
"
:
coordinatesLangData
};
var
forcing
=
{
"
model
"
:
"
NEMO
"
,
var
forcing
config
=
{
"
model
"
:
"
GETM
"
,
"
configuration
"
:
"
NORDIC
"
,
"
domain
"
:
"
NS02
"
"
domain
"
:
"
HELCOM
"
};
var
domainname
=
"
HELCOM
"
;
reqwest
({
url
:
"
forcing/config
"
+
STWkit
.
jsonToQueryString
(
forcing
),
url
:
"
forcing/config
"
+
STWkit
.
jsonToQueryString
(
forcing
config
),
method
:
'
get
'
,
type
:
'
json
'
,
success
:
function
(
forcing
)
{
...
...
@@ -151,6 +151,7 @@
"
domain
"
:
domainname
,
"
lang
"
:
language
,
"
langdata
"
:
langData
,
"
forcingmodel
"
:
forcingconfig
.
model
,
calculationmode
:
true
,
uncertainty
:
true
};
...
...
src/components/cards.js
View file @
d69c23f3
...
...
@@ -998,6 +998,10 @@ var STWkit;
if
(
options
.
domain
)
{
_this
.
domain
=
options
.
domain
;
}
_this
.
forcingmodel
=
"
NEMO
"
;
if
(
options
.
forcingmodel
)
{
_this
.
forcingmodel
=
options
.
forcingmodel
;
}
_this
.
lang
=
"
en
"
;
if
(
options
.
lang
)
{
_this
.
lang
=
options
.
lang
;
...
...
@@ -1005,11 +1009,8 @@ var STWkit;
if
(
options
.
langdata
)
{
_this
.
langData
=
options
.
langdata
;
}
_this
.
forcingmodel
=
"
NEMO
"
;
if
(
options
.
forcing
)
{
_this
.
forcing
=
options
.
forcing
;
if
((
_this
.
forcing
.
features
.
length
>
0
)
&&
(
_this
.
forcing
.
features
[
0
].
properties
))
_this
.
forcingmodel
=
_this
.
forcing
.
features
[
0
].
properties
.
model
;
}
_this
.
showuncertainty
=
true
;
if
(
typeof
options
.
uncertainty
!==
"
undefined
"
)
...
...
src/components/cards.js.map
View file @
d69c23f3
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/components/cards.ts
View file @
d69c23f3
...
...
@@ -1113,6 +1113,10 @@ module STWkit {
if
(
options
.
domain
)
{
this
.
domain
=
options
.
domain
;
}
this
.
forcingmodel
=
"
NEMO
"
;
if
(
options
.
forcingmodel
)
{
this
.
forcingmodel
=
options
.
forcingmodel
;
}
this
.
lang
=
"
en
"
;
if
(
options
.
lang
)
{
this
.
lang
=
options
.
lang
;
...
...
@@ -1121,11 +1125,8 @@ module STWkit {
this
.
langData
=
options
.
langdata
;
}
this
.
forcingmodel
=
"
NEMO
"
;
if
(
options
.
forcing
)
{
this
.
forcing
=
options
.
forcing
;
if
((
this
.
forcing
.
features
.
length
>
0
)
&&
(
this
.
forcing
.
features
[
0
].
properties
))
this
.
forcingmodel
=
this
.
forcing
.
features
[
0
].
properties
.
model
;
}
this
.
showuncertainty
=
true
;
if
(
typeof
options
.
uncertainty
!==
"
undefined
"
)
this
.
showuncertainty
=
options
.
uncertainty
;
...
...
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