Hello,
I am trying to update my application from ArcIMS to ArcGIS 10 for Flex 1.3. One of the options I have is to click on the map and enter in a number of miles. The system would then draw a circle around the point I clicked on with a radius in miles equaling the number I entered. The system would also return me back all the geographies that was in the circle. Below is the code used from ArcIMS to do such a process. I was looking for the comparable way to do this in ArcGIS 10.0 API for Flex 1.3. Thanks
Dim mCircle As aims.Circle = New aims.Circle
mCircle.Distance = radius // number of miles entered in by the user
mCircle.X = X // latitude of point clicked on the map
mCircle.Y = Y //longitude of point clicked on the map
MapLayerIndex = GetLayerIndexByName(mLayers, ZipLayerName) // get the index of the zip code layer we are using
ZipLayer = mLayers.Item(MapLayerIndex).Clone() //make a copy of the zip code layer
ZipLayer.Recordset.Filter.WhereExpression = Where
ZipLayer.Recordset.Filter.ClearGObjects()
ZipLayer.Recordset.Filter.AddGObject(mCircle) //Add the circle to the cloned layer to fill it
If (ZipLayer.Recordset.MoveFirst) Then
Do //Loop through the new clone layer to get all of the geographies in the layer
flds = ZipLayer.Recordset.Fields
If Not (ZipCodeValues = "") Then ZipCodeValues &= ","
ZipCodeValues &= flds.FieldValueAsString(FieldIndex)
Loop While ZipLayer.Recordset.MoveNext
End If
At this point ZipCodeValues has a comma-delimited string of geographies