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
a8807309
Commit
a8807309
authored
Oct 06, 2017
by
Tomas Pettersson
🏸
Browse files
subtype is now an array
parent
29c26725
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
src/components/cards.js
View file @
a8807309
...
...
@@ -1156,7 +1156,7 @@ var STWkit;
};
CardControl
.
prototype
.
open
=
function
(
geojson
)
{
var
self
=
this
;
if
(
geojson
.
features
[
0
].
properties
.
type
==
self
.
type
&&
geojson
.
features
[
0
].
properties
.
subtype
==
self
.
subtype
)
{
if
(
geojson
.
features
[
0
].
properties
.
type
==
self
.
type
&&
self
.
subtype
.
includes
(
geojson
.
features
[
0
].
properties
.
subtype
)
)
{
self
.
clear
();
for
(
var
i
in
self
.
cardMap
)
{
if
(
self
.
cardMap
.
hasOwnProperty
(
i
))
{
...
...
src/components/cards.js.map
View file @
a8807309
This diff is collapsed.
Click to expand it.
src/components/cards.ts
View file @
a8807309
...
...
@@ -1074,7 +1074,7 @@ module STWkit {
private
uncertaintyInput
:
HTMLInputElement
;
private
startButton
:
HTMLButtonElement
;
private
type
:
string
;
private
subtype
:
string
;
private
subtype
:
any
;
private
name
:
string
;
private
initials
:
string
;
private
showuncertainty
:
boolean
;
...
...
@@ -1280,7 +1280,7 @@ module STWkit {
public
open
(
geojson
)
{
var
self
=
this
;
if
(
geojson
.
features
[
0
].
properties
.
type
==
self
.
type
&&
geojson
.
features
[
0
].
properties
.
subtype
==
self
.
subtype
)
{
if
(
geojson
.
features
[
0
].
properties
.
type
==
self
.
type
&&
self
.
subtype
.
includes
(
geojson
.
features
[
0
].
properties
.
subtype
)
)
{
self
.
clear
();
for
(
var
i
in
self
.
cardMap
)
{
if
(
self
.
cardMap
.
hasOwnProperty
(
i
))
{
...
...
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