Skip to content

Fix DblclickZoomInteraction not disabling double click zoom#120

Merged
arnaudleclerc merged 1 commit intodevelopfrom
features/fix-dblclick-zoom-interaction
Mar 10, 2026
Merged

Fix DblclickZoomInteraction not disabling double click zoom#120
arnaudleclerc merged 1 commit intodevelopfrom
features/fix-dblclick-zoom-interaction

Conversation

@arnaudleclerc
Copy link
Owner

Fixes #113

Root cause

.NET's camelCase JSON serializer converts DblclickZoomInteraction to dblclickZoomInteraction (lowercase c in click).

The Azure Maps SDK expects dblClickZoomInteraction (capital C in Click).

Because the key name didn't match, the SDK silently ignored the property and double click zoom was never disabled.

Fix

Added [JsonPropertyName("dblClickZoomInteraction")] to UserInteractionOptions.DblclickZoomInteraction to force the correct serialized key name.

Testing

All 1057 tests pass on net8.0, net9.0, and net10.0.

.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>
@arnaudleclerc arnaudleclerc merged commit b66ed7f into develop Mar 10, 2026
4 of 6 checks passed
@arnaudleclerc arnaudleclerc deleted the features/fix-dblclick-zoom-interaction branch March 10, 2026 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setting DblclickZoomInteraction to false does not disable it

1 participant