/// <summary> /// Initializes a new instance of the <see cref="PolylineOverlay"/> class. /// </summary> public PolylineOverlay() { _items = new LinkedList <Position>(); _boundingBox = MapRegion.Empty(); // Defaults LineWidth = 1.0f; StrokeColor = Color.Blue; }
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)); }