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
285
Zoom without clicking?
posted

Is there a way to zoom in on an element without clicking it? I have a MapLayerImport function and would like to zoom in on an element based on its name. Is this possible?

Thanks

Parents
No Data
Reply
  • 30692
    Suggested Answer
    Offline posted

    if you can find the mapelement in the collection that represents the element you want to zoom into (by name). Then you can try

    theMap.WindowFit(element);

    where theMap is a reference to the map control, and element is the element you want to zoom to.

    -Graham

Children
No Data