GoogleMapsOverview Class

Intended for usage on Environment overviews, this component displays a Google Maps overview of the Devices of that environment.

Definition

Namespace: MobileTrack.Web.Portal.Components.Overviews
Assembly: MobileTrack.Web.Portal (in MobileTrack.Web.Portal.exe) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
public class GoogleMapsOverview : ComponentBase, 
	IDisposable, IHasLocalization, IHasCompany, IHasNavigationManager
Inheritance
Object    ComponentBase    GoogleMapsOverview
Implements
IHasCompany, IHasLocalization, IHasNavigationManager, IDisposable

Remarks

This component can be used in two ways: either to display it to an authenticated user in the portal, or through a JWT token. That is why this component is not derived from MtBaseComponent

Constructors

GoogleMapsOverviewInitializes a new instance of the GoogleMapsOverview class

Properties

AuthenticationStateTask Authentication state; certain features are not available unless the user is signed in.
CompanyId Represents the CompanyDto owning this object.
Configuration Dependency injection for Azure App Configuration
CosmosDbWrapper Lazy wrapper for the Azure CosmosDB
Dialog Dialog to share environment or device page
EnableMapMarker True to enable map markers on the map; false to disable them.
GoogleMap Google Map interface
KeyVault Interop object for the Azure Key Vault.
Loc Dependency injection for the localization tool. It derives texts established in CosmosDB's "LocalizedStrings" container. It can be used by invoking it as an array, with the key of the text you want to get. Parameters for the string can be added in the array as well, similar to Format(String, Object).
If the text is not found, it will return the key itself as fallback.

The language the key will be localized based on is based on the CurrentCulture and the CurrentUICulture.
If you want to localize something in a different language, you will have to apply the culture on the CultureInfo properties, get the text,
and revert back to the original culture.
NavigationManager Dependency injected NavigationManager for navigating to different pages.
Note: in Blazor, navigation is done in a 'fake' manner so the entire page doesn't need to be reloaded.
If you want to make sure the page is reloaded, or if we're going somewhere outside the Blazor context,
ensure you set the parameter 'forceLoad' in method NavigateTo(String, Boolean, Boolean) to true.
OnDeviceSelected Invoked when a DeviceDto has been selected by the user on the map.
ScopeId The scope of the map (environments and its sub-environments and devices, or a specific device).
ScopeType Can only be EnvironmentResource or DeviceResource

Methods

BuildRenderTree
(Overrides ComponentBaseBuildRenderTree(RenderTreeBuilder))
DisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
OnInitializedAsync Method invoked when the component is ready to start, having received its initial parameters from its parent in the render tree. Override this method if you will perform an asynchronous operation and want the component to refresh when that operation is completed.
(Overrides ComponentBaseOnInitializedAsync)
OnParametersSet Method invoked when the component has received parameters from its parent in the render tree, and the incoming values have been assigned to properties.
(Overrides ComponentBaseOnParametersSet)

See Also