<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Turning an ArcGISDynamicMapServiceLayer into a FeatureLayer in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/turning-an-arcgisdynamicmapservicelayer-into-a/m-p/218587#M5471</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have pleasantly surprised by many area County Appraisal Districts and the data that they have available.&amp;nbsp; 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.&amp;nbsp; The problem is, there is a ton of data (attributes) that come with the overlays.&amp;nbsp; I was displaying them via ArcGISDynamicMapServiceLayer and that worked great.&amp;nbsp; However, I want my ArcGISDynamicMapServiceLayer and my MapTips too.&amp;nbsp; 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.&amp;nbsp; It works great, setting the *NEW" OnDemand mode is also quite handy as there can be lots of data returned.&amp;nbsp; The new problem occurs when I have multiple layers - ie layer 0 = active wells, layer 1 = inactive wells in the same overlay.&amp;nbsp; The ArcGISDynamicMapServiceLayer handles this by design, but to do it via feature layers cleanly, I am stuck.&amp;nbsp; 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.&amp;nbsp; Of course I could always edit the MXD to have them be sublayers/ or fused?&amp;nbsp; 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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Spencer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Forestar Group USA&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NYSE:FOR&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 May 2010 18:00:16 GMT</pubDate>
    <dc:creator>SpencerWilliams</dc:creator>
    <dc:date>2010-05-04T18:00:16Z</dc:date>
    <item>
      <title>Turning an ArcGISDynamicMapServiceLayer into a FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/turning-an-arcgisdynamicmapservicelayer-into-a/m-p/218587#M5471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have pleasantly surprised by many area County Appraisal Districts and the data that they have available.&amp;nbsp; 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.&amp;nbsp; The problem is, there is a ton of data (attributes) that come with the overlays.&amp;nbsp; I was displaying them via ArcGISDynamicMapServiceLayer and that worked great.&amp;nbsp; However, I want my ArcGISDynamicMapServiceLayer and my MapTips too.&amp;nbsp; 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.&amp;nbsp; It works great, setting the *NEW" OnDemand mode is also quite handy as there can be lots of data returned.&amp;nbsp; The new problem occurs when I have multiple layers - ie layer 0 = active wells, layer 1 = inactive wells in the same overlay.&amp;nbsp; The ArcGISDynamicMapServiceLayer handles this by design, but to do it via feature layers cleanly, I am stuck.&amp;nbsp; 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.&amp;nbsp; Of course I could always edit the MXD to have them be sublayers/ or fused?&amp;nbsp; 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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Spencer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Forestar Group USA&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NYSE:FOR&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 18:00:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/turning-an-arcgisdynamicmapservicelayer-into-a/m-p/218587#M5471</guid>
      <dc:creator>SpencerWilliams</dc:creator>
      <dc:date>2010-05-04T18:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Turning an ArcGISDynamicMapServiceLayer into a FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/turning-an-arcgisdynamicmapservicelayer-into-a/m-p/218588#M5472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;From the sound of it, I have a feeling what you are trying to do is going to cause a lot of headaches, so before we go any further into a solution, I want to raise a concerns:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It sounds like you are going to be downloading an ENOURMOUS amount of data under the covers. You are downloading both geometry and a bunch of attributes for all the layers as the user zooms and pans, even though the same data is already present in the dynamic layer, and the user might not even be interested in the specific data. This could very quickly become a HUGE bottleneck, both on the network and performance-wise on the client.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As an alternative, I suggest you use the Identify task on the map. When the mouse stops over a certain point on the map for for instance .5 seconds, you automatically perform an identify using the IdentifyTask and pop up a custom maptip window next to the mouse. This has the benefit of not overloading the network, your server, the client's framerate, and only requesting the data that the user was interested in. Would that not cover your use-case?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 00:09:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/turning-an-arcgisdynamicmapservicelayer-into-a/m-p/218588#M5472</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-05-05T00:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Turning an ArcGISDynamicMapServiceLayer into a FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/turning-an-arcgisdynamicmapservicelayer-into-a/m-p/218589#M5473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Morten,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As always, thanks for the quick response.&amp;nbsp; Your solution would cover my use case; however, I see 2 potential problems with this.&amp;nbsp; Let's say I have 3 overlays that are present at the same time: 1 shows wells, 1 shows landfills and the other shows tax parcels.&amp;nbsp; Because the Identify task needs to be tied to the map control (correct me if I'm wrong here), there is no way for me to know which service to query.&amp;nbsp; I would end up having to query against 3 services every time the map is clicked - be it for panning, zooming, etc.&amp;nbsp; I could limit the click event to only be active when the user chose a tool like "Identify Feature Tool" and while that was selected it would += the event and on tool "drop" then -= the eventhandler.&amp;nbsp; Back to my scenario - a well on top of a parcel would always return both (unless I made the user choose the overlay layer that they wanted the data from - haha, writing this post is giving me more ideas :))&amp;nbsp; I would need to do something like the Identify example shows with a drop down for each layer's info that gets returned.&amp;nbsp; All in all, it would save me the bottleneck that you describe.&amp;nbsp; Because I am talking about maptips here, it could just display a stackpanel for each layer that returned results.&amp;nbsp; I think I will go the Identify route, although if you have any comments on this post feel free to let me know.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Spencer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Forestar Group USA&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NYSE: FOR&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 12:03:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/turning-an-arcgisdynamicmapservicelayer-into-a/m-p/218589#M5473</guid>
      <dc:creator>SpencerWilliams</dc:creator>
      <dc:date>2010-05-05T12:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Turning an ArcGISDynamicMapServiceLayer into a FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/turning-an-arcgisdynamicmapservicelayer-into-a/m-p/218590#M5474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok the identify task is definitely the way to go.&amp;nbsp; However, because the layer that I am clicking on (I know it's the map that handles the click, but anyway) doesn't support Graphics - how do I create a map tip for the data that is returned?&amp;nbsp; The data is a graphic itself - the only way I can think to do it is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;clear graphics in a tempLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;create a graphic where their mouse is in the tempLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then identifyTask_ExecuteCompleted fires and adds the maptip to the only graphic that is in that tempLayer (the one that I just added)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and every mouse pause (.5 seconds) does this again and again while an overlay layer is present&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is that the approach?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 13:23:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/turning-an-arcgisdynamicmapservicelayer-into-a/m-p/218590#M5474</guid>
      <dc:creator>SpencerWilliams</dc:creator>
      <dc:date>2010-05-05T13:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Turning an ArcGISDynamicMapServiceLayer into a FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/turning-an-arcgisdynamicmapservicelayer-into-a/m-p/218591#M5475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You don't create a MapTip as such. You just instantiate a usercontrol that contains the information you need, add it to the page, and position at the click position (you can use e.GetPosition(parentOfMyCustomMapTopControl) to get that location). Use the margins/alignments on the control to position it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 14:31:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/turning-an-arcgisdynamicmapservicelayer-into-a/m-p/218591#M5475</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-05-05T14:31:38Z</dc:date>
    </item>
  </channel>
</rss>

