Map style is null
Closed this issue · 1 comments
Slipoch commented
Map style always seems to come out null, throwing an error here in MapScripts.cshtml:
var stylesObject = Html.Raw(JsonConvert.DeserializeObject(Model.MapConfig.Style));
Recommend changing to
var stylesObject = Html.Raw(JsonConvert.DeserializeObject(Model.MapConfig.Style ?? ""));
ronaldbarendse commented
The MapScripts.schtml
won't be included in new versions, but your recommendation can indeed be manually applied to existing projects using it. Thanks for providing the feedback and work-around 👍🏻