Is there a way to change displaylevels dynamically?

Discussion created by fuliaoli on Jan 14, 2014
Latest reply on Jan 15, 2014 by fuliaoli
I add a layer with displaylevels such as [12,13,14], but some returned features are not displayed correctly if I use map.setExtent(extent, true). I guess I have to change the displaylevels to reflect the extent. Or maybe there are some other better ways.
Thanks in advance.