AnsweredAssumed Answered

Adjusting text symbol attributes on zoom

Question asked by ywen123 on Jan 15, 2018
Latest reply on Jan 15, 2018 by ywen123

My feature layer has text symbols.  I need to dynamically adjust the font size property of the text or hide them altogether, based on the zoom level of the mapview.

 

What is the pattern to achieve this? I have a watch function on the view.stationary property so I know when the zoom is occurring.  However I can't just loop through the layers and change the fontSize property and expect it to reflect on screen - There is no binding between the layer instances and the DOM.  Do I just need to brut force it - Delete textSymbol graphics and re-add them with a different font-size?

Outcomes