示例#1
0
 internal void AddPlots(IEnumerable <Core.Entities.Plot> plots)
 {
     foreach (var pin in from plot in plots
              where plot.Position != null
              select new Pin
     {
         Position = plot.Position.ForMap(),
         Label = plot.Name ?? "",
         Tag = plot,
         Icon = BitmapDescriptorFactory.DefaultMarker(
             (Color)PrismApplicationBase.Current.Resources["PrimaryGreen"])
     })
     {
         PlotPins.Append(pin);
         Device.BeginInvokeOnMainThread(
             () => { map.Pins.Add(pin); });
     }
 }
示例#2
0
 public void SetPlotLayerVisibility(bool visible)
 {
     PlotPins?.All(x => x.IsVisible = visible);
 }