Пример #1
0
 public InfoBox(Geocoordinate center, InfoboxOptions options, string id)
 {
     Id     = id ?? Guid.NewGuid().ToString();
     Center = center;
     JSRuntime.InvokeAsync <object>(_infoboxRegister, Id, center, options);
     thisRef = DotNetObjectReference.Create(this);
 }
Пример #2
0
 public async Task Options(InfoboxOptions options)
 {
     if (SetParameter(ref _options, options))
     {
         await JSRuntime.InvokeAsync <object>(_infoboxSet + nameof(Options), Id, options);
     }
 }
Пример #3
0
 public InfoBox(Geocoordinate center, InfoboxOptions options) : this(center, options, Guid.NewGuid().ToString())
 {
 }