Handling Errors
|
47
Controlling Intermediate Update Map Redraw
Operations
You can use the
MGMap.getIntermediateUpdatesEnabled
and
MGMap.setIntermediateUpdatesEnabled
methods to control how
frequently Autodesk MapGuide Viewer redraws a map. By default, maps are
updated every 1.5 seconds, enabling the end user to progressively view a map
as it is being rendered, rather than waiting until the entire map is complete.
Changes to the intermediate update setting takes effect on the next redraw
or refresh operation. The following JavaScript functions disable and re-
enable intermediate updates:
function disableIntermediateUpdates()
{
var map = getMap();
var status = map.getIntermediateUpdatesEnabled();
if (status == true) map.setIntermediateUpdatesEnabled(false);
}
function enableIntermediateUpdates()
{
var map = getMap();
var status = map.getIntermediateUpdatesEnabled();
if (status == false) map.setIntermediateUpdatesEnabled(true);
}
Handling Errors
Every application should track and handle errors. The Autodesk MapGuide
Viewer API has error tracking methods and properties you can use to debug
your applications.
Getting Error Codes
Every time an API method is run or a property is accessed, Autodesk
MapGuide updates the
MGError
object. This object contains error informa-
tion for the most recently executed method or property.
Содержание 15606-011408-9300 - MAP R6.3 UPG
Страница 1: ...15306 010000 5060 October 2001 Autodesk MapGuide Release 6 Developer s Guide ...
Страница 6: ...vi ...
Страница 16: ...16 ...
Страница 30: ...30 ...
Страница 84: ...84 ...
Страница 134: ...134 ...
Страница 202: ...202 ...