diff --git a/src/AzureMapsControl.Components/Layers/MediaLayerOptions.cs b/src/AzureMapsControl.Components/Layers/MediaLayerOptions.cs
index 9d53f33..4954896 100644
--- a/src/AzureMapsControl.Components/Layers/MediaLayerOptions.cs
+++ b/src/AzureMapsControl.Components/Layers/MediaLayerOptions.cs
@@ -16,7 +16,7 @@ public abstract class MediaLayerOptions : LayerOptions
///
/// A number between -1 and 1 that increases or decreases the contrast of the overlay.
///
- public int? Contrast { get; set; }
+ public double? Contrast { get; set; }
///
/// The duration in milliseconds of a fade transition when a new tile is added.
@@ -33,22 +33,22 @@ public abstract class MediaLayerOptions : LayerOptions
///
/// A number between 0 and 1 that increases or decreases the maximum brightness of the overlay.
///
- public int? MaxBrightness { get; set; }
+ public double? MaxBrightness { get; set; }
///
/// A number between 0 and 1 that increases or decreases the minimum brightness of the overlay.
///
- public int? MinBrightness { get; set; }
+ public double? MinBrightness { get; set; }
///
/// A number between 0 and 1 that indicates the opacity at which the overlay will be drawn.
///
- public int? Opacity { get; set; }
+ public double? Opacity { get; set; }
///
/// A number between -1 and 1 that increases or decreases the saturation of the overlay.
///
- public int? Saturation { get; set; }
+ public double? Saturation { get; set; }
}
internal abstract class MediaLayerOptionsJsonConverter : LayerOptionsJsonConverter
@@ -70,7 +70,7 @@ protected static void ReadMediaLayerOptionsProperty(string propertyName, Utf8Jso
switch (propertyName)
{
case "contrast":
- value.Contrast = reader.TokenType == JsonTokenType.Null ? null : reader.GetInt32();
+ value.Contrast = reader.TokenType == JsonTokenType.Null ? null : reader.GetDouble();
break;
case "fadeDuration":
@@ -82,19 +82,19 @@ protected static void ReadMediaLayerOptionsProperty(string propertyName, Utf8Jso
break;
case "maxBrightness":
- value.MaxBrightness = reader.TokenType == JsonTokenType.Null ? null : reader.GetInt32();
+ value.MaxBrightness = reader.TokenType == JsonTokenType.Null ? null : reader.GetDouble();
break;
case "minBrightness":
- value.MinBrightness = reader.TokenType == JsonTokenType.Null ? null : reader.GetInt32();
+ value.MinBrightness = reader.TokenType == JsonTokenType.Null ? null : reader.GetDouble();
break;
case "opacity":
- value.Opacity = reader.TokenType == JsonTokenType.Null ? null : reader.GetInt32();
+ value.Opacity = reader.TokenType == JsonTokenType.Null ? null : reader.GetDouble();
break;
case "saturation":
- value.Saturation = reader.TokenType == JsonTokenType.Null ? null : reader.GetInt32();
+ value.Saturation = reader.TokenType == JsonTokenType.Null ? null : reader.GetDouble();
break;
}
}