Hi All.<br><br>I am trying to zoom to a layer after it's created. What I want to do is create a bunch of layers in a tree structure. When the user clicks on a layer, I want it to jump to that layer. What I would like to do is given the layer pointer, call
map.zoomToExtent with the layers extent.<br><br>The problem is that I couldn't find a way to query the current layer for it's full extents. When I call getExtent() and getZoom(), it returns me the current extent and zoom of the layer in the map, not the full extent and full zoom. Is there an easier way of doing this? I should mention that I pass a "maxExtent" for each one of the layers created. Is there a way to pull the layer extent from this?
<br><br>-Lennox