Facility Management Application
|
159
xyPt.setY(xyPt.getY() + delta)
}
if (direction == 'Ur') {
xyPt.setX(xyPt.getX() + delta)
xyPt.setY(xyPt.getY() + delta)
}
if (direction == 'Down') {
xyPt.setY(xyPt.getY() - delta)
}
if (direction == 'Ld') {
xyPt.setX(xyPt.getX() - delta)
xyPt.setY(xyPt.getY() - delta)
}
if (direction == 'Rd') {
xyPt.setX(xyPt.getX() + delta)
xyPt.setY(xyPt.getY() - delta)
}
// Zoom to the new location
myScale = map.getScale();
map.zoomScale(xyPt.getY(), xyPt.getX(), myScale);
map.setAutoRefresh(true);
map.refresh();
}//ends panning
}
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= //
// Function:
GoToOrig(lat, lon)
// Description:
Zooms to the lat lon specified with a width of 400 ft
//
Arguments:
lat, lon
// Returns: nothing
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= //
function GoToOrig(lat, lon){
var map = getMap();
map.zoomWidth(lat, lon, 400, "FT");
}
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= //
// Function:
reportsDlg()
+
// Description:
shows the reports dialog for generating reports
+
// Arguments:
none
+
// Return:
none
+
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
function reportsDlg(){
var map = getMap();
var sel = map.getSelection();
var mapLayer = map.getMapLayer("Offices");
if ((sel.getNumObjects() < 1) || (mapLayer.isVisible() == false)){
alert("You must select an office first.");
}
else{
Facilities Management Application Example Code (
continued
)
Summary of Contents for 15606-011408-9300 - MAP R6.3 UPG
Page 1: ...15306 010000 5060 October 2001 Autodesk MapGuide Release 6 Developer s Guide ...
Page 6: ...vi ...
Page 16: ...16 ...
Page 30: ...30 ...
Page 84: ...84 ...
Page 134: ...134 ...
Page 202: ...202 ...