Open cwschroeder opened 3 years ago
I tried to extend the MarkerOptions by an Icon object like that.
public class Icon : InteropObject { [JsonIgnore] public IconOptions IconOptions { get; set; } public Icon(string iconUrl) { this.IconOptions = new IconOptions() { IconUrl = iconUrl, }; } protected override async Task<IJSObjectReference> CreateJsObjectRef() { return await JSBinder.JSRuntime.InvokeAsync<IJSObjectReference>("L.icon", IconOptions); } } public class IconOptions { public string IconUrl { get; set; } }
Unfortunately the JS-Runtime throws an error because createIcon() does not exist. What is missing?
I tried to extend the MarkerOptions by an Icon object like that.
Unfortunately the JS-Runtime throws an error because createIcon() does not exist. What is missing?