diff --git a/MapControl/Shared/WmsImageLayer.cs b/MapControl/Shared/WmsImageLayer.cs index b463104b..0d5191c9 100644 --- a/MapControl/Shared/WmsImageLayer.cs +++ b/MapControl/Shared/WmsImageLayer.cs @@ -36,10 +36,6 @@ namespace MapControl nameof(Styles), typeof(string), typeof(WmsImageLayer), new PropertyMetadata(string.Empty, async (o, e) => await ((WmsImageLayer)o).UpdateImageAsync())); - public static readonly DependencyProperty FormatProperty = DependencyProperty.Register( - nameof(Format), typeof(string), typeof(WmsImageLayer), - new PropertyMetadata("image/png", async (o, e) => await ((WmsImageLayer)o).UpdateImageAsync())); - /// /// The base request URL. /// @@ -67,15 +63,6 @@ namespace MapControl set { SetValue(StylesProperty, value); } } - /// - /// Requested image format. Default is image/png. - /// - public string Format - { - get { return (string)GetValue(FormatProperty); } - set { SetValue(FormatProperty, value); } - } - /// /// Gets a list of all layer names returned by a GetCapabilities response. /// @@ -157,9 +144,9 @@ namespace MapControl uri += "&STYLES=" + Styles; } - if (uri.IndexOf("FORMAT=", StringComparison.OrdinalIgnoreCase) < 0 && Format != null) + if (uri.IndexOf("FORMAT=", StringComparison.OrdinalIgnoreCase) < 0) { - uri += "&FORMAT=" + Format; + uri += "&FORMAT=image/png"; } var rect = projection.BoundingBoxToRect(BoundingBox);