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 https://kiosk.memphispolice.org/mpdwards.xml into a map? This is a list of MPD precincts.Thanks,John Harvey
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. 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. You can look at our SDK samples for guide: esriurl.com/slsdk2.Good luck.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.