Autodesk 15606-011408-9300 Developer Guide - Page 144
map.getMapLayerMarin County Land Parcels, continued
UPC - 606121429548
View all Autodesk 15606-011408-9300 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 144 highlights
Municipal Application Example Code (continued) map = getMap(); // Get instance of MGMap if (map.isBusy() == false) // If Autodesk MapGuide Viewer is not busy... { // ...assign a bunch of layers to a bunch of variables var mapLayer2 = map.getMapLayer("Population > 100000"); var mapLayer3 = map.getMapLayer("Population > 50000"); var mapLayer4 = map.getMapLayer("Population > 500"); var mapLayer5 = map.getMapLayer("Population > 0"); var mapLayer6 = map.getMapLayer("Railroads"); var mapLayer7 = map.getMapLayer("Interstates"); var mapLayer8 = map.getMapLayer("Highways"); var mapLayer9 = map.getMapLayer("Major Roads"); var mapLayer10 = map.getMapLayer("Minor Roads"); var mapLayer11 = map.getMapLayer("Water Service Acct."); var mapLayer12 = map.getMapLayer("Water - 3 inch Valves"); var mapLayer13 = map.getMapLayer("Water - Point of Service"); var mapLayer14 = map.getMapLayer("Water - Distribution"); var mapLayer15 = map.getMapLayer("Water - 3 inch Distribution"); var mapLayer16 = map.getMapLayer("Marin County Land Parcels"); var mapLayer17 = map.getMapLayer("Population Density"); var mapLayer18 = map.getMapLayer("ZIP Codes"); var mapLayer19 = map.getMapLayer("Counties"); // If function was called with 'Off', make the // following layers invisible... if (type == 'Off') { for (i=2; i