public void LoadPointGroup(PointGroup pg)
 {
     if (pg.Selected)
     {
         WebClient wc = new WebClient();
         wc.DownloadStringCompleted += new DownloadStringCompletedEventHandler(SharedLandmarksDownloadComplete);
         wc.DownloadStringAsync(new Uri("http://vanguide.cloudapp.net/Summaries/ShowForCommunityByActivity.json?page=0&page_size=100&nocache=" + Guid.NewGuid().ToString()), pg);
     }
     else
     {
         //unload all the children frm the map layer
         pg.RemovePinsFromLayer();
     }
 }
Ejemplo n.º 2
0
 public  void LoadPointGroup(PointGroup pg)
 {
     if (pg.Selected)
     {
         WebClient client = new WebClient();
         client.DownloadStringCompleted += new DownloadStringCompletedEventHandler(dataElement_DownloadStringCompleted);
         client.DownloadStringAsync(new Uri(pg.DataUrl), pg);
     }
     else
     {
         //unload all the children frm the map layer
         pg.RemovePinsFromLayer();
     }
 }