/// <summary> Initializes a new instance of the <see cref="UntiledCanvas"/> class. If the parameter /// <paramref name="addToMap"/> is set to true, the new canvas instance is added to the parent map. </summary> /// <param name="mapView"> The parent map instance. </param> /// <param name="untiledProvider"> The instance of the provider delivering bitmaps of a map. </param> /// <param name="addToMap"> Indicates that the map should be inserted to the parent map initially. </param> public UntiledCanvas(MapView mapView, IUntiledProvider untiledProvider, bool addToMap) : base(mapView, addToMap) { this.untiledProvider = untiledProvider; mapImage = new Image { IsHitTestVisible = false }; Children.Add(mapImage); }
/// <summary> Initializes a new instance of the <see cref="UntiledCanvas"/> class. This method /// initializes the maximum request size for map bitmaps to 2048 x 2048 pixels. </summary> /// <param name="mapView"> The parent map instance. </param> /// <param name="untiledProvider"> The instance of the provider, which delivers untiled bitmaps. </param> public UntiledCanvas(MapView mapView, IUntiledProvider untiledProvider) : this(mapView, untiledProvider, true) { MaxRequestSize = new Size(2048, 2048); MinLevel = 0; }