Skip to content

Commit b66ed7f

Browse files
Fix DblclickZoomInteraction not disabling double click zoom (#113) (#120)
.NET's camelCase JSON serializer converts DblclickZoomInteraction to dblclickZoomInteraction (lowercase 'c' in click), but the Azure Maps SDK expects dblClickZoomInteraction (capital 'C' in Click). The property was silently ignored, so double click zoom was never disabled. Fix by adding [JsonPropertyName("dblClickZoomInteraction")] to ensure the correct key is sent to the SDK. Fixes #113 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 52bf7ce commit b66ed7f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/AzureMapsControl.Components/Map/UserInteractionOptions.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
namespace AzureMapsControl.Components.Map
22
{
33
using System.Diagnostics.CodeAnalysis;
4+
using System.Text.Json.Serialization;
45

56
[ExcludeFromCodeCoverage]
67
public sealed class UserInteractionOptions
@@ -13,6 +14,7 @@ public sealed class UserInteractionOptions
1314
/// <summary>
1415
/// Whether double left click will zoom the map inwards.
1516
/// </summary>
17+
[JsonPropertyName("dblClickZoomInteraction")]
1618
public bool? DblclickZoomInteraction { get; set; }
1719

1820
/// <summary>

0 commit comments

Comments
 (0)