[mapguide-users] Error while zooming in fusion layout
Wilson Herrera
wherrera at pccadpanama.com
Wed Oct 10 08:24:13 PDT 2012
hello everyone,
after a search i found a similar case which gordon had answered.
http://osgeo-org.1560.n6.nabble.com/Not-able-execute-ZoomToView-pXCO-pYCO-pScale-true-in-Fusion-version-of-AIM-td4989597.html
in this case the proposed solution was to use a function, just like this one
function ZoomToView(x, y, scale, refresh) {
//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);
}
}
the function works, but the extents are way off the point.
<http://osgeo-org.1560.n6.nabble.com/file/n5007774/Capture2.png>
is there a way to ensure the extent is a valid one?
thank you for your help.
Best Regards,
Wilson H.
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Error-while-zooming-in-fusion-layout-tp5007257p5007774.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list