Select to view content in your preferred language

Set displayLevels dynamically?

615
0
01-15-2014 03:58 AM
fuliaoli
Deactivated User
I'm new to js api. Recently I've been working on a map project which shows water wells information. When I add the well layer, I set its displayLevels such as [13, 14...]. It works ok. When I search by well id, it works perfectly. However, if I search by well management system which covers many wells, the resulting extent seems too large to be display correctly. I use setExtent(extent, true).   Is there a way to reset displayLevels according to the extent of returned wells? Or any other solutions?
Please help.
0 Kudos
0 Replies