Commit a8807309 authored by Tomas Pettersson's avatar Tomas Pettersson 🏸

subtype is now an array

parent 29c26725
...@@ -1156,7 +1156,7 @@ var STWkit; ...@@ -1156,7 +1156,7 @@ var STWkit;
}; };
CardControl.prototype.open = function (geojson) { CardControl.prototype.open = function (geojson) {
var self = this; 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(); self.clear();
for (var i in self.cardMap) { for (var i in self.cardMap) {
if (self.cardMap.hasOwnProperty(i)) { if (self.cardMap.hasOwnProperty(i)) {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -1074,7 +1074,7 @@ module STWkit { ...@@ -1074,7 +1074,7 @@ module STWkit {
private uncertaintyInput: HTMLInputElement; private uncertaintyInput: HTMLInputElement;
private startButton: HTMLButtonElement; private startButton: HTMLButtonElement;
private type: string; private type: string;
private subtype: string; private subtype: any;
private name: string; private name: string;
private initials: string; private initials: string;
private showuncertainty: boolean; private showuncertainty: boolean;
...@@ -1280,7 +1280,7 @@ module STWkit { ...@@ -1280,7 +1280,7 @@ module STWkit {
public open(geojson) { public open(geojson) {
var self = this; 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(); self.clear();
for (var i in self.cardMap) { for (var i in self.cardMap) {
if (self.cardMap.hasOwnProperty(i)) { if (self.cardMap.hasOwnProperty(i)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment