public InfoBox(Geocoordinate center, InfoboxOptions options, string id) { Id = Guid.NewGuid().ToString(); Center = center; JSRuntime.Current.InvokeAsync <object>(_infoboxRegister, Id, center, options); thisRef = new DotNetObjectRef(this); }
public async Task Options(InfoboxOptions options) { if (SetParameter(ref _options, options)) { await JSRuntime.Current.InvokeAsync <object>(_infoboxSet + nameof(Options), Id, options); } }
public InfoBox(Geocoordinate center, InfoboxOptions options) : this(center, options, Guid.NewGuid().ToString()) { }