public static FromPositions ( IEnumerable |
||
positions | IEnumerable |
The positions. |
리턴 |
internal MapRegion GetRegionForAllAnnotations() { var allPinPositions = _renderer.Map.Pins.OfType <IMapPin>().Select(p => p.Location); return(MapRegion.FromPositions(allPinPositions)); }
internal MapRegion GetRegionForAllAnnotations() { var allPinPositions = _renderer.Map.Pins?.OfType <IMapPin>()?.Select(p => p.Location); return(allPinPositions == null || allPinPositions.Count() == 0 ? MapRegion.Empty() : MapRegion.FromPositions(allPinPositions)); }