title: Binding map overlays to a collection in Windows Phone 8
body: <p>I am currently developing an app for Windows Phone 8 and I encounter some issues due to the asynchronism of all network operations.</p>
  
  <p>I have a list of GeoCoordinate items that I retrieve from an XML file stored on my own website.
  These points represent a path that I would like to display on a map.</p>
  
  <p>This list can easily be changed into a list of MapOverlay objects.
  However, using</p>
  
  <pre><code>map.Layers.Add(...);
  </code></pre>
  
  <p>does not help as the list is not built at the moment of the call (the XML loading and reading is asynchronous).</p>
  
  <p>After having a look at the documentation, it looks like a single MapOverlay XAML item can be easily binded to a GeoCoordinate object.
  However, I could not find any way to bind a MapLayer XAML item to a collection of GeoCoordinate objects which, I think, would make sense... All the solutions I found on the Internet were only usable for Windows Phone 7.</p>
  
  <p>If anyone has an idea, I would be glad to hear it.
  Thanks!</p>