You just need to set the Scale parameter to the zoom you require. This can be
done by code or hard written.
I would suggest hard writing it to test it as below:

function ZoomToView(x, y, 50000, refresh) { 
    var Fusion = window.top.Fusion; 
    var mapWidget = Fusion.getWidgetById(mapWidgetId); 
    if (mapWidget && mapWidget.isMapLoaded()) { 
        var extent = mapWidget.getExtentFromPoint(x, y, 1000); 
        mapWidget.setExtents(extent); 
    } 
} 

-----
http://www.software-matters.co.uk Software Matters  - 
http://www.software-matters.co.uk/bespoke-database-design.html Bespoke
Database  and Software Solutions
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/zoom-to-selected-item-tp6031757p6040141.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to