Municipal Application
|
143
if ( (InWindow == null) || (InWindow.closed) )
return;
else
InWindow.close();
}
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= //
// Function: Incidents(type)
// Description: Turns Incidents layer on or off (called by
// ON/OFF buttons, under Layer Control: Incidents)
// Arguments: string ('On' or 'Off')
// Returns: nothing
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= //
function incidents(type)
{
map = getMap();
// Get instance of MGMap
if (map.isBusy() == false)
// If Autodesk MapGuide Viewer is not busy...
{
// ...get "Incidents"
layer
var mapLayer1 = map.getMapLayer("Incidents");
// If function was called with 'Off', make the
// layer invisible; otherwise make the layer visible
if (type == 'Off')
mapLayer1.setVisibility(false);
else
mapLayer1.setVisibility(true);
// Tell the Autodesk MapGuide Viewer to rebuild layer
// when map is refreshed; then refresh map
mapLayer1.setRebuild(true);
map.refresh();
}
// If Autodesk MapGuide Viewer is busy, don't do the stuff above;
// instead, display alert
else
alert("The Autodesk MapGuide Viewer is busy. Please try again
in a few seconds.");
}
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= //
// Function: vector(type)
// Description:
Turns vector layers on or off (called by
// ON/OFF buttons, under Layer Control: Vector Layers)
// Arguments:
string ('On' or 'Off')
// Returns:
nothing
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= //
function vector(type)
{
Municipal Application Example Code (
continued
)
Содержание 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 ...