All,Production Web Server just upgraded to Server 10. We have some web applications (happens with both a 2.0 and 2.5 api app) that will:- find an address point through query task (works fine at 10)
- then buffers the address point by 500 ft (geometry server - works fine in 10 and we can display the buffer as a graphic to know it worked)
- Then selects all the fire hydrants within that buffer polygon using a query task.- I think this works because the featureset.count that is returned is correct.
- Cycle through the returned hydrants, create graphics of those features and display. - this no longer works after the upgrade to 10. It is like the QueryEvent returns something different that will not work anymore.
Any ideas?? Below is the code where I think the problem occurs - it is in the query task executeComplete function. The hydrants are in a secure service, but that shouldn't matter. I tried it with unsecured services, too. Below is a link to one site - type in an address. Let it process through a bunch of queries. Then press the "Show Hydrants.." button in section 3. It zooms out to where it should, but you don't see any cute yellow fire hydrants. I can tell it is finding the hydrants because of the count it returned in a test. https://gis.greenvillesc.gov/wheresmyhouse/ 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
Thanks for any help. I hope this is something someone has already seen.Carmen