<?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: How to display a polygon in Silverlight and ESRI maps from xml file in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-display-a-polygon-in-silverlight-and-esri/m-p/305844#M7885</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You can use WebClient DownloadStringAsync and parse the result into an XDocument. Based on the XML you provided, it seems like you can use a GraphicsLayer with UniqueValueRenderer (Attribute="precinct") that uses SimpleFillSymbol. Your UniqueValueRendererInfos will have a different color per precinct value.&amp;nbsp; By setting the renderer, you do not have to create a symbol on individual graphics. But you will still need to create each graphic based on the ward information you just parsed so that each ward becomes a graphic in your GraphicsLayer with geometry from the given pointcollection, and attributes from the given "name" and "precinct" values. &lt;BR /&gt;&lt;BR /&gt;You can look at our SDK samples for guide: esriurl.com/slsdk2.&lt;BR /&gt;&lt;BR /&gt;Good luck.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Jennifer. I will take a look at the sdk sample.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 05 Sep 2010 17:07:45 GMT</pubDate>
    <dc:creator>JohnHarvey</dc:creator>
    <dc:date>2010-09-05T17:07:45Z</dc:date>
    <item>
      <title>How to display a polygon in Silverlight and ESRI maps from xml file</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-display-a-polygon-in-silverlight-and-esri/m-p/305841#M7882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am a relative newby to Silverlight. I have done maps using Google's api to display polygons which are contained in an xml file, but I am lost as to how to make this happen here. Can someone show me how to add &lt;/SPAN&gt;&lt;A href="https://kiosk.memphispolice.org/mpdwards.xml"&gt;https://kiosk.memphispolice.org/mpdwards.xml&lt;/A&gt;&lt;SPAN&gt; into a map? This is a list of MPD precincts.&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;John Harvey&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 18:14:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-display-a-polygon-in-silverlight-and-esri/m-p/305841#M7882</guid>
      <dc:creator>JohnHarvey</dc:creator>
      <dc:date>2010-08-20T18:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a polygon in Silverlight and ESRI maps from xml file</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-display-a-polygon-in-silverlight-and-esri/m-p/305842#M7883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am a relative newby to Silverlight. I have done maps using Google's api to display polygons which are contained in an xml file, but I am lost as to how to make this happen here. Can someone show me how to add &lt;A href="https://kiosk.memphispolice.org/mpdwards.xml"&gt;https://kiosk.memphispolice.org/mpdwards.xml&lt;/A&gt; into a map? This is a list of MPD precincts.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;John Harvey&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you planing to get the file every client request?&amp;nbsp; If so, you would need to use the WebClient or HTTPRequest functionality built into SL to get the xml file from their sever. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Afterwards, you should be able to simply parse out the points into PointCollection(s), LinqToXML can be used to make this an easier task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then just add the Polygons with the collections to a GraphicsLayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;**&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or if the dataset is rather static, then you could save the data to your database. When you want to show the map, then retrieve the points from the DB and build polygons from that. Or you could use IsolatedStorage to save a cache copy of the XML file data.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 18:24:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-display-a-polygon-in-silverlight-and-esri/m-p/305842#M7883</guid>
      <dc:creator>MartenLiebster</dc:creator>
      <dc:date>2010-08-20T18:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a polygon in Silverlight and ESRI maps from xml file</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-display-a-polygon-in-silverlight-and-esri/m-p/305843#M7884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use WebClient DownloadStringAsync and parse the result into an XDocument. Based on the XML you provided, it seems like you can use a GraphicsLayer with UniqueValueRenderer (Attribute="precinct") that uses SimpleFillSymbol. Your UniqueValueRendererInfos will have a different color per precinct value.&amp;nbsp; By setting the renderer, you do not have to create a symbol on individual graphics. But you will still need to create each graphic based on the ward information you just parsed so that each ward becomes a graphic in your GraphicsLayer with geometry from the given pointcollection, and attributes from the given "name" and "precinct" values. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can look at our SDK samples for guide: esriurl.com/slsdk2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 20:50:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-display-a-polygon-in-silverlight-and-esri/m-p/305843#M7884</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-08-20T20:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a polygon in Silverlight and ESRI maps from xml file</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-display-a-polygon-in-silverlight-and-esri/m-p/305844#M7885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You can use WebClient DownloadStringAsync and parse the result into an XDocument. Based on the XML you provided, it seems like you can use a GraphicsLayer with UniqueValueRenderer (Attribute="precinct") that uses SimpleFillSymbol. Your UniqueValueRendererInfos will have a different color per precinct value.&amp;nbsp; By setting the renderer, you do not have to create a symbol on individual graphics. But you will still need to create each graphic based on the ward information you just parsed so that each ward becomes a graphic in your GraphicsLayer with geometry from the given pointcollection, and attributes from the given "name" and "precinct" values. &lt;BR /&gt;&lt;BR /&gt;You can look at our SDK samples for guide: esriurl.com/slsdk2.&lt;BR /&gt;&lt;BR /&gt;Good luck.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Jennifer. I will take a look at the sdk sample.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Sep 2010 17:07:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-display-a-polygon-in-silverlight-and-esri/m-p/305844#M7885</guid>
      <dc:creator>JohnHarvey</dc:creator>
      <dc:date>2010-09-05T17:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a polygon in Silverlight and ESRI maps from xml file</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-display-a-polygon-in-silverlight-and-esri/m-p/305845#M7886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The closest sample is the 'Show GeoRss feed' sample : &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#GeoRSS"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#GeoRSS&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In this sample, there is commented part of the code using LINQ to read a XML file.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Sep 2010 09:01:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-display-a-polygon-in-silverlight-and-esri/m-p/305845#M7886</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2010-09-06T09:01:30Z</dc:date>
    </item>
  </channel>
</rss>

