I am working on a web app using ArcGISDynamicMapServiceLayers, which use UniqueValueRenderers to draw points based on attributes. In many cases, the attribute value is 0, in which cases I would not want to display anything. If I do not assign some symbol to these values, the service draws the default symbol in those locations. I tried assigning a symbol with 0 opacity (transparent), but when I use an InfoWindow in the web app, a click will still [pick up these invisible symbols.
Is there a way that I can not draw these symbols at all if the attribute value is 0?
The user will choose which attribute to use for rendering the symbols. So that value may be 0 in some cases and nonzero in others.