From 99f39cb2034cce36792f6d6fdb8210a3ba4ffb80 Mon Sep 17 00:00:00 2001 From: Arnaud Leclerc Date: Tue, 10 Mar 2026 17:29:57 +0100 Subject: [PATCH] Fix DblclickZoomInteraction not disabling double click zoom (#113) .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> --- src/AzureMapsControl.Components/Map/UserInteractionOptions.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/AzureMapsControl.Components/Map/UserInteractionOptions.cs b/src/AzureMapsControl.Components/Map/UserInteractionOptions.cs index b1a2411..8ae8bb0 100644 --- a/src/AzureMapsControl.Components/Map/UserInteractionOptions.cs +++ b/src/AzureMapsControl.Components/Map/UserInteractionOptions.cs @@ -1,6 +1,7 @@ namespace AzureMapsControl.Components.Map { using System.Diagnostics.CodeAnalysis; + using System.Text.Json.Serialization; [ExcludeFromCodeCoverage] public sealed class UserInteractionOptions @@ -13,6 +14,7 @@ public sealed class UserInteractionOptions /// /// Whether double left click will zoom the map inwards. /// + [JsonPropertyName("dblClickZoomInteraction")] public bool? DblclickZoomInteraction { get; set; } ///