Skip to content

Commit 17d117c

Browse files
committed
fix: Default opacity to 1 for all annotation opacity properties
1 parent 53f7cd6 commit 17d117c

File tree

7 files changed

+403
-7
lines changed

7 files changed

+403
-7
lines changed

src/libs/Mapbox.Maui/Mapbox.Maui.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
<RepositoryUrl>https://github.com/tuyen-vuduc/mapbox-maui</RepositoryUrl>
6262
<PackageProjectUrl>https://mapbox.tuyen-vuduc.tech</PackageProjectUrl>
6363
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
64-
<PackageVersion>11.5.1-alpha04</PackageVersion>
64+
<PackageVersion>11.5.1-alpha05</PackageVersion>
6565
<PackageReadmeFile>README.md</PackageReadmeFile>
6666
<PackageLicenseFile>LICENSE</PackageLicenseFile>
6767
<PackageIcon>tv-mapbox.png</PackageIcon>

src/libs/Mapbox.Maui/Models/Annotations/CircleAnnotation.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public double? CircleOpacity
5353
{
5454
get
5555
{
56-
return GetProperty<double?>("circle-opacity", default);
56+
return GetProperty<double?>("circle-opacity", 1);
5757
}
5858
set
5959
{
@@ -92,7 +92,7 @@ public double? CircleStrokeOpacity
9292
{
9393
get
9494
{
95-
return GetProperty<double?>("circle-stroke-opacity", default);
95+
return GetProperty<double?>("circle-stroke-opacity", 1);
9696
}
9797
set
9898
{

src/libs/Mapbox.Maui/Models/Annotations/PointAnnotation.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ public double? IconOpacity
289289
{
290290
get
291291
{
292-
return GetProperty<double?>("icon-opacity", default);
292+
return GetProperty<double?>("icon-opacity", 1);
293293
}
294294
set
295295
{
@@ -354,7 +354,7 @@ public double? TextOpacity
354354
{
355355
get
356356
{
357-
return GetProperty<double?>("text-opacity", default);
357+
return GetProperty<double?>("text-opacity", 1);
358358
}
359359
set
360360
{

src/libs/Mapbox.Maui/Models/Annotations/PolygonAnnotation.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public Color FillColor
2626
/// The opacity of the entire fill layer. In contrast to the `fill-color`, this value will also affect the 1px stroke around the fill, if the stroke is used.
2727
public double? FillOpacity
2828
{
29-
get => GetProperty<double>("fill-opacity", default);
29+
get => GetProperty<double>("fill-opacity", 1);
3030
set => SetProperty("fill-opacity", value);
3131
}
3232

src/libs/Mapbox.Maui/Models/Annotations/PolylineAnnotation.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public double? LineOpacity
9292
{
9393
get
9494
{
95-
return GetProperty<double?>("line-opacity", default);
95+
return GetProperty<double?>("line-opacity", 1);
9696
}
9797
set
9898
{

0 commit comments

Comments
 (0)