Mercurial > gemma
diff 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 |
line wrap: on
line diff
--- a/client/src/components/identify/Identify.vue Fri Apr 12 12:29:00 2019 +0200 +++ b/client/src/components/identify/Identify.vue Fri Apr 12 12:49:43 2019 +0200 @@ -164,7 +164,14 @@ }, featureId(feature) { // cut away everything from the last . to the end - return feature.getId().replace(/[.][^.]*$/, ""); + let id = ""; + if (feature.getId) { + id = feature.getId(); + } + if (feature.id) { + id = feature.id; + } + return id.replace(/[.][^.]*$/, ""); }, featureLabel(feature) { if (formatter.hasOwnProperty(this.featureId(feature))) {