cboBufferUnit.selectedIndex = 2;
//Calculate turbine fall zone public function calculateBtn_clickHandler(event:MouseEvent):void { if (surfaceLevRB.selected == true){ rotorDiam = parseInt(rotorCombo.selectedLabel); towerHeight = parseInt(towerCombo.selectedLabel); } if (allLevRB.selected == true){ rotorDiam = parseInt(rotorText.text); towerHeight = parseInt(towerText.text); } if (safetyMult.text == ""){ safezone = 1 }else{ safezone = parseInt(safetyMult.text); } fallzone = Math.floor((towerHeight + (rotorDiam/2))* safezone); Alert.show("Radius (m): " + fallzone.toString()); applyBuffer(fallzone); } private function applyBuffer(fallzone:Number):void { var graLayAC:ArrayCollection = graphicsLayer.graphicProvider as ArrayCollection; if (graLayAC.length > 0) { geomArr = []; for each (var graphic:Graphic in graphicsLayer.graphicProvider) { geomArr.push(graphic.geometry); } var buffUnit:Number = GeometryService[configBufferUnits[cboBufferUnit.selectedIndex].name]; bufferGeometries(geomArr,sReff,[fallzone],buffUnit); } else { showMessage("There is no result to buffer, please make a graphical or text search first.",false, true); } }
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.