0

I've got the following map on JSFiddle.

The popup information comes from an Arcgis Server with 23 columns. When you click around the markers you can see that most of the popup information are not filled.

How could I add code to display only info where the info is NOT NULL?

closed as off-topic by PolyGeo Jan 23 at 1:04

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "When seeking help to debug/write/improve code always provide the desired behavior, a specific problem/error and the shortest code (as formatted text, not pictures) needed to reproduce it in the question body. Providing a clear problem statement and a code attempt helps others to help you." – PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the question.

1

check the updated JSFiddle. I hope it is what you need.

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

  • That's exactly what I want. But the code has a little bug. In my JSFiddle I am working with aliases to rename the real column names. E.g. take the playground you can see when you start the map and look at the popup. It has In Grünanlage/Park: x . Now looking at your code and at the same playground it hides the info. I guess it's because you used my aliases in var spielangebote. Would you mind to have a look again at the code? – hoge6b01 Feb 12 '15 at 10:04
  • You can use a two dimensional array or a json with the aliases and the real column names. I updated the JSFiddle and now you can get all info in the popup. – nipro Feb 12 '15 at 10:21
  • Thank you very much. Now everything is diplayed as wanted! – hoge6b01 Feb 12 '15 at 14:25

Not the answer you're looking for? Browse other questions tagged or ask your own question.