Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
125
Zoom to extent programmatically
posted

I am calculating the bounding rectangle of all symbols I am plotting on my map's symbol layer, and I want the initial zoom to be the level which just covers this.

I can set the map's WindowRect and WorldRect to my bounding rectangle, but this doesn't allow me to zoom out.  

Perhaps I can use ZoomToScale?  I don't know, because there is no worthwhile documentation that I can find. Same story with WindowRect and WorldRect.  Perhaps a blog post explaining how all these properties and methods fit together would help?  

How about a ZoomToExtent feature in a future release?  Ideally this would have an optional "margin" argument.

Thanks,
Col