private function onfireHydrantQueryComplete4Locate(event:QueryEvent):void { var hydrantFeatureSet: FeatureSet = event.featureSet; for each (var hydrantGraphicFeature: Graphic in hydrantFeatureSet.features) { firehydrantCount = firehydrantCount + 1; hydrantGraphicFeature.symbol = firehydrantSymbol; fireHydrantLayer.add(hydrantGraphicFeature); } if (firehydrantCount == 0) { Alert.show("Zero fire hydrants found within 500 feet of this address"); } // end if else { fireHydrantLayer.visible = true; // Alert.show(firehydrantCount.toString()); map.extent = lastBufferGraphic.geometry.extent.expand(1.5); } // end else cursorManager.removeBusyCursor(); } // end function onfireHydrantQueryComplete4Locate
Solved! Go to Solution.
<esri:Query id="fireHydrantQuery" returnGeometry="true" outSpatialReference="{map.spatialReference}">
hydrantGraphicFeature.symbol = firehydrantSymbol;
<esri:Query id="fireHydrantQuery" returnGeometry="true" outSpatialReference="{map.spatialReference}">