Empty() public static method

Returns an empty map region.
public static Empty ( ) : MapRegion
return MapRegion
Ejemplo n.º 1
0
        /// <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;
        }
Ejemplo n.º 2
0
        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));
        }