Not able execute ZoomToView(pXCO, pYCO, pScale, true) in Fusion version of AIM

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Not able execute ZoomToView(pXCO, pYCO, pScale, true) in Fusion version of AIM

veer-singh
Hi All,
I'm trying to execute method parent.parent.ZoomToView(pXCO, pYCO, pScale, true);
but not working. i also tried
GetParent().ZoomToView(pXCO, pYCO, pScale, true);
which is also not working. So could u plz let me know if sm thing is missing.
where :
 function GetParent()
           {
               if (parent.Fusion) {
                   return parent;
               }
               else if (parent.parent.Fusion) {
                   return parent.parent;
               }
           }
VEER HCLTECH,INDIA
Reply | Threaded
Open this post in threaded view
|

Re: Not able execute ZoomToView(pXCO, pYCO, pScale, true) in Fusion version of AIM

GordonL
Try:

function ZoomToView(x, y, scale, refresh) {
    var Fusion = top.Fusion;
    //OR var Fusion = top.iFrameMap.Fusion
    var mapWidget = Fusion.getWidgetById('Map');
    if (mapWidget && mapWidget.isMapLoaded()) {
        var extent = mapWidget.getExtentFromPoint(x, y, scale);
        mapWidget.setExtents(extent);
    }
}
Reply | Threaded
Open this post in threaded view
|

Re: Not able execute ZoomToView(pXCO, pYCO, pScale, true) in Fusion version of AIM

veer-singh
Ya its working thank u.
VEER HCLTECH,INDIA