@@ -16,7 +16,7 @@ public abstract class MediaLayerOptions : LayerOptions
1616 /// <summary>
1717 /// A number between -1 and 1 that increases or decreases the contrast of the overlay.
1818 /// </summary>
19- public int ? Contrast { get ; set ; }
19+ public double ? Contrast { get ; set ; }
2020
2121 /// <summary>
2222 /// The duration in milliseconds of a fade transition when a new tile is added.
@@ -33,22 +33,22 @@ public abstract class MediaLayerOptions : LayerOptions
3333 /// <summary>
3434 /// A number between 0 and 1 that increases or decreases the maximum brightness of the overlay.
3535 /// </summary>
36- public int ? MaxBrightness { get ; set ; }
36+ public double ? MaxBrightness { get ; set ; }
3737
3838 /// <summary>
3939 /// A number between 0 and 1 that increases or decreases the minimum brightness of the overlay.
4040 /// </summary>
41- public int ? MinBrightness { get ; set ; }
41+ public double ? MinBrightness { get ; set ; }
4242
4343 /// <summary>
4444 /// A number between 0 and 1 that indicates the opacity at which the overlay will be drawn.
4545 /// </summary>
46- public int ? Opacity { get ; set ; }
46+ public double ? Opacity { get ; set ; }
4747
4848 /// <summary>
4949 /// A number between -1 and 1 that increases or decreases the saturation of the overlay.
5050 /// </summary>
51- public int ? Saturation { get ; set ; }
51+ public double ? Saturation { get ; set ; }
5252 }
5353
5454 internal abstract class MediaLayerOptionsJsonConverter < TOptions > : LayerOptionsJsonConverter < TOptions >
@@ -70,7 +70,7 @@ protected static void ReadMediaLayerOptionsProperty(string propertyName, Utf8Jso
7070 switch ( propertyName )
7171 {
7272 case "contrast" :
73- value . Contrast = reader . TokenType == JsonTokenType . Null ? null : reader . GetInt32 ( ) ;
73+ value . Contrast = reader . TokenType == JsonTokenType . Null ? null : reader . GetDouble ( ) ;
7474 break ;
7575
7676 case "fadeDuration" :
@@ -82,19 +82,19 @@ protected static void ReadMediaLayerOptionsProperty(string propertyName, Utf8Jso
8282 break ;
8383
8484 case "maxBrightness" :
85- value . MaxBrightness = reader . TokenType == JsonTokenType . Null ? null : reader . GetInt32 ( ) ;
85+ value . MaxBrightness = reader . TokenType == JsonTokenType . Null ? null : reader . GetDouble ( ) ;
8686 break ;
8787
8888 case "minBrightness" :
89- value . MinBrightness = reader . TokenType == JsonTokenType . Null ? null : reader . GetInt32 ( ) ;
89+ value . MinBrightness = reader . TokenType == JsonTokenType . Null ? null : reader . GetDouble ( ) ;
9090 break ;
9191
9292 case "opacity" :
93- value . Opacity = reader . TokenType == JsonTokenType . Null ? null : reader . GetInt32 ( ) ;
93+ value . Opacity = reader . TokenType == JsonTokenType . Null ? null : reader . GetDouble ( ) ;
9494 break ;
9595
9696 case "saturation" :
97- value . Saturation = reader . TokenType == JsonTokenType . Null ? null : reader . GetInt32 ( ) ;
97+ value . Saturation = reader . TokenType == JsonTokenType . Null ? null : reader . GetDouble ( ) ;
9898 break ;
9999 }
100100 }
0 commit comments