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

bugfix open

parent 254fb4ec
...@@ -1319,7 +1319,7 @@ module STWkit { ...@@ -1319,7 +1319,7 @@ module STWkit {
public open(geojson) { public open(geojson) {
var self = this; var self = this;
if (geojson.features[0].properties.type == self.type && (self.subtype.search(geojson.features[0].properties.subtype)) >= 0) { if (geojson.features[0].properties.type == self.type && (self.subtype.indexOf(geojson.features[0].properties.subtype)) >= 0) {
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