Mercurial > gemma
comparison client/src/components/identify/Identify.vue @ 3029:81c2e561fe03
Use distance marks an axis via WMS. Added legend and featureinfo.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 12 Apr 2019 12:49:43 +0200 |
parents | f59cff59a630 |
children | c71373594719 |
comparison
equal
deleted
inserted
replaced
3028:188fb0133e50 | 3029:81c2e561fe03 |
---|---|
162 close() { | 162 close() { |
163 this.$store.commit("application/showIdentify", false); | 163 this.$store.commit("application/showIdentify", false); |
164 }, | 164 }, |
165 featureId(feature) { | 165 featureId(feature) { |
166 // cut away everything from the last . to the end | 166 // cut away everything from the last . to the end |
167 return feature.getId().replace(/[.][^.]*$/, ""); | 167 let id = ""; |
168 if (feature.getId) { | |
169 id = feature.getId(); | |
170 } | |
171 if (feature.id) { | |
172 id = feature.id; | |
173 } | |
174 return id.replace(/[.][^.]*$/, ""); | |
168 }, | 175 }, |
169 featureLabel(feature) { | 176 featureLabel(feature) { |
170 if (formatter.hasOwnProperty(this.featureId(feature))) { | 177 if (formatter.hasOwnProperty(this.featureId(feature))) { |
171 return formatter[this.featureId(feature)].label; | 178 return formatter[this.featureId(feature)].label; |
172 } | 179 } |