We have pleasantly surprised by many area County Appraisal Districts and the data that they have available. I modified the dynamic legend code from the code gallery to suit our needs and be able to display things like landfills, recycling centers, active water wells, etc. The problem is, there is a ton of data (attributes) that come with the overlays. I was displaying them via ArcGISDynamicMapServiceLayer and that worked great. However, I want my ArcGISDynamicMapServiceLayer and my MapTips too. I have been successful in creating a transparent feature layer that sits on top of the ArcGISDynamicMapServiceLayer that displays the overlay with MapTips along with the dynamic legend. It works great, setting the *NEW" OnDemand mode is also quite handy as there can be lots of data returned. The new problem occurs when I have multiple layers - ie layer 0 = active wells, layer 1 = inactive wells in the same overlay. The ArcGISDynamicMapServiceLayer handles this by design, but to do it via feature layers cleanly, I am stuck. I was about to start coding a function that would tell me how many layers there are via layerDefinitions in the ArcGISDynamicMapServiceLayer and then create a feature layer (ie some awful code like someOtherLayer.Url = url + "/0" , + "/1" , + "/2" , + "/3" and so on and keep track of them somehow when I figured I should ask if there was a better way to do this. Of course I could always edit the MXD to have them be sublayers/ or fused? But I???m more of a programmer than a GIS guy, not to mention we would have to re-do it every quarter for every overlay for every county/datasource???.not my idea of fun.
Thanks,
Spencer
Forestar Group USA
NYSE:FOR