<?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 Re: Featurelayer problem in V2 Beta version. in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-problem-in-v2-beta-version/m-p/152943#M3854</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have not reproduced the compile error when a feature layer has no URL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is exactly the error you get?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Jun 2010 15:43:55 GMT</pubDate>
    <dc:creator>DominiqueBroux</dc:creator>
    <dc:date>2010-06-01T15:43:55Z</dc:date>
    <item>
      <title>Featurelayer problem in V2 Beta version.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-problem-in-v2-beta-version/m-p/152942#M3853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I&amp;nbsp;&amp;nbsp; feel a&amp;nbsp; problem with FeatureLayer in V2 Beta, but I am not sure&amp;nbsp; if ESRI designs FeatureLayer in V2 just like this way or not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in V1.2, I used to do the following in .xmal file, then in the code behind, I set URL dynamically. Everything was fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;esri:FeatureLayer ID="FLayer" &amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:FeatureLayer.OutFields&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sys:String&amp;gt;*&amp;lt;/sys:String&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:FeatureLayer.OutFields&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; esri:FeatureLayer&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But now, with V2.0 beta version, if I didn't set a default URL in the .xmal file, it would not successfullu compile, and always got the error. If i set a URL in the .xaml file, there would no problem . But if I set a URL in .xaml file, then the user clicked&amp;nbsp; a button , then reset the URL for the featurelayer in the code,&amp;nbsp; then you didn't see the change displayed on the map, click again, the change showed on the map. So it need click twice. Finally, I had to use GraphicsLayer instead of FeatureLayer for my purpose. The GraphicLayer seems fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any body has such experiences with FeatureLayer in V2 beta?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 21:05:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-problem-in-v2-beta-version/m-p/152942#M3853</guid>
      <dc:creator>DeminHu</dc:creator>
      <dc:date>2010-05-27T21:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Featurelayer problem in V2 Beta version.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-problem-in-v2-beta-version/m-p/152943#M3854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have not reproduced the compile error when a feature layer has no URL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is exactly the error you get?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jun 2010 15:43:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-problem-in-v2-beta-version/m-p/152943#M3854</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2010-06-01T15:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Featurelayer problem in V2 Beta version.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-problem-in-v2-beta-version/m-p/152944#M3855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After read your reply, I recreated a new peoject with&amp;nbsp; standard template, I added a feautelayer as the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;esri:FeatureLayer ID="FLayer" &amp;gt; &amp;lt;/esri:FeatureLayer&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, I could compile successfully, but when&amp;nbsp; I tried to run, the map&amp;nbsp; could not be dispalyed, IE browser show: Error on page. I did the same on my working app which created with show case template, it was the same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As soon as I removed or set a default URL for Featurelayer in .xaml , everything was OK.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I forgot what exactly error meesage showed before, since it was a few week ago. it seems something like: the tag already declared in app.xaml.&amp;nbsp; But as I&amp;nbsp; tested now, as long as I set a default URL in .xaml, it was Ok, no error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know what is wrong? now, I am using Graphicslayer instead for my&amp;nbsp; purpose, but if I can fix the problem , use the featurelayer, it will help me&amp;nbsp; a lot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jun 2010 20:37:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-problem-in-v2-beta-version/m-p/152944#M3855</guid>
      <dc:creator>DeminHu</dc:creator>
      <dc:date>2010-06-01T20:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Featurelayer problem in V2 Beta version.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-problem-in-v2-beta-version/m-p/152945#M3856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hook up to the 'InitializationFailed' event (even if you are doing nothing in 'FeatureLayer_InitializationFailed').&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This will prevent the system to throw an exception if the initialization of the layer fails.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt; &amp;lt;esri:FeatureLayer ID="ID=FLayer" InitializationFailed="FeatureLayer_InitializationFailed"/&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jun 2010 11:50:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-problem-in-v2-beta-version/m-p/152945#M3856</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2010-06-02T11:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Featurelayer problem in V2 Beta version.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-problem-in-v2-beta-version/m-p/152946#M3857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the&amp;nbsp; suggestion !!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 12:13:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-problem-in-v2-beta-version/m-p/152946#M3857</guid>
      <dc:creator>DeminHu</dc:creator>
      <dc:date>2010-06-03T12:13:12Z</dc:date>
    </item>
  </channel>
</rss>

