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); }); } }
public void SetPlotLayerVisibility(bool visible) { PlotPins?.All(x => x.IsVisible = visible); }