Autodesk 15606-011408-9300 Developer Guide - Page 159
if sel.getNumObjects < 1 || mapLayer.isVisible == false
UPC - 606121429548
View all Autodesk 15606-011408-9300 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 159 highlights
Facilities Management Application Example Code (continued) 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{ Facility Management Application | 159