/// <summary> /// Retrieves the currently selected facility. /// </summary> /// <returns>Currently selected facility</returns> /// <exception cref="ComponentDisposedException">The component has already been disposed</exception> public async ValueTask <(string FacilityId, int LevelOrdinal)> GetCurrentFacilityAsync() { _logger.LogAzureMapsControlInfo(AzureMapLogEvent.IndoorManager_GetCurrentFacilityAsync, "IndoorManager - GetCurrentFacilityAsync"); _logger.LogAzureMapsControlDebug(AzureMapLogEvent.IndoorManager_GetCurrentFacilityAsync, "Id", Id); EnsureNotDisposed(); var currentFacility = await _jsRuntime.InvokeAsync <IndoorFacility>(Constants.JsConstants.Methods.Indoor.GetCurrentFacility.ToIndoorNamespace(), Id); return(currentFacility.FacilityId, currentFacility.LevelOrdinal); }
public async ValueTask <bool> IsSupportedAsync() { _logger?.LogAzureMapsControlInfo(AzureMapLogEvent.FullScreenService_IsFullScreenSupportedAsync, "FullScreenService - IsSupportedAsync"); return(await _jsRuntime.InvokeAsync <bool>(Constants.JsConstants.Methods.FullScreenControl.IsFullScreenSupported.ToFullScreenControlNamespace())); }
/// <summary> /// Checks to see if the geolocation API is supported in the browser. /// </summary> /// <returns>True if the geolocation API is supported in the browser, otherwise false</returns> public async ValueTask <bool> IsGeolocationSupportedAsync() { _logger?.LogAzureMapsControlInfo(AzureMapLogEvent.GeolocationService_IsGeolocationSupportedAsync, "GeolocationService - IsGeolocationSupportedAsync"); return(await _mapJsRuntime.InvokeAsync <bool>(Constants.JsConstants.Methods.GeolocationControl.IsGeolocationSupported.ToGeolocationControlNamespace())); }