MGMap.setIntermediateUpdatesEnabled   Go to object model Go to parent topic Go to previous topic Go to next topic

Syntax

setIntermediateUpdatesEnabled (boolean intermediateUpdatesEnabled)

Description

Specifies whether or not the map window should update every 1.5 seconds during a drawing operation or only at the end when all data has been loaded and rendered.

By default, intermediate updates are enabled for all Autodesk MapGuide Viewers. This allows users to progressively see a map as it is being rendered, rather than waiting until the entire map is complete.

Parameters

intermediateUpdatesEnabled - True to specify that intermediate updates should be performed, or False to disable intermediate updates.

Returns

none

Refresh

The setting takes effect on the next redraw or refresh operation.

Error Codes

none

Example

The following functions determine the current status of intermediate updates using getIntermediateUpdatesEnabled. They then use setIntermediateUpdatesEnabled to either disable and 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);
}

See Also

getIntermediateUpdatesEnabled, IntermediateUpdatesEnabled