[mapguide-users] Re: zoom to selected item
JamesDudden
jamesdudden at blueyonder.co.uk
Fri Feb 18 09:40:02 EST 2011
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.
More information about the mapguide-users
mailing list