Refresh and Zoom
 
 

The default scale and center point of a map are set as part of the map definition. When a map first displays, the default values are used. As users change the view, the changes are not saved back to the map definition, but are used temporarily as part of the session.

JavaScript API calls on the viewer refresh the map and set the view scale and map center. See MapGuide Viewer API for details about ways to call JavaScript functions.

To refresh a map, execute the following JavaScript function:

parent.Refresh();

To change the center point and map view scale, execute the following JavaScript function:

ZoomToView(XCoordinate, YCoordinate, MapScale, Refresh);