diff --git a/Our.Umbraco.GMaps.Core/Models/Legacy/LegacyMapConfig.cs b/Our.Umbraco.GMaps.Core/Models/Legacy/LegacyMapConfig.cs index 4fb2c53..172c2fb 100644 --- a/Our.Umbraco.GMaps.Core/Models/Legacy/LegacyMapConfig.cs +++ b/Our.Umbraco.GMaps.Core/Models/Legacy/LegacyMapConfig.cs @@ -9,8 +9,20 @@ internal class LegacyMapConfig : MapConfig [JsonPropertyName("mapcenter")] public string MapCenter { get; set; } + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public new string Zoom { get; set; } + [JsonProperty("zoom")] [JsonPropertyName("zoom")] - public new string Zoom { get; set; } + public object _value + { + get + { + if (int.TryParse(Zoom, out var intValue)) return intValue; + return this.Zoom; + } + set { this.Zoom = value.ToString(); } + } } }