Mercurial > gemma
diff client/src/components/identify/formatter.js @ 2743:4063adda3095
client: identified box: moved bbox zoom button to feature headers and removed bbox from the feature's properties list
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Wed, 20 Mar 2019 12:10:42 +0100 |
parents | 4486ca003b55 |
children | 9107c959bb3b |
line wrap: on
line diff
--- a/client/src/components/identify/formatter.js Wed Mar 20 11:01:17 2019 +0100 +++ b/client/src/components/identify/formatter.js Wed Mar 20 12:10:42 2019 +0100 @@ -7,6 +7,11 @@ if (p.key === "date_info" || p.key === "fa_date_info") { p.val = new Date(p.val).toLocaleString(); } + + // remove certain props + let propsToRemove = ["bbox"]; + if (propsToRemove.indexOf(p.key) !== -1) return null; + return p; }, bottlenecks_geoserver: {