Hi ,
I want one expression in Arc Pro for Show map tips.
But I have issue , below first snap shot. One field having Null value but I can't remove this field from expression because other features having these values.
So, I just want valid expression for don't display any Null value fields. Show only those fields where some values populated.
Thanks in Advance.
Solved! Go to Solution.
var labels_and_values = [
["Name = ", $feature.Name],
["Type = ", $feature.Type],
["River = ", $feature.River],
]
var lines = []
for(var i in labels_and_values) {
if(!IsEmpty(labels_and_values[i][1])) {
Push(lines, Concatenate(labels_and_values[i]))
}
}
return Concatenate(lines, TextFormatting.NewLine)
var labels_and_values = [
["Name = ", $feature.Name],
["Type = ", $feature.Type],
["River = ", $feature.River],
]
var lines = []
for(var i in labels_and_values) {
if(!IsEmpty(labels_and_values[i][1])) {
Push(lines, Concatenate(labels_and_values[i]))
}
}
return Concatenate(lines, TextFormatting.NewLine)
Thanks !!!! JohannesLindner
Its Working