LocationPickerT Class

Allows the user to select a location on a map, which gets assigned to the Location property.

Definition

Namespace: MobileTrack.Web.Components.Components
Assembly: MobileTrack.Web.Components (in MobileTrack.Web.Components.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
public sealed class LocationPicker<T> : InputComponentBase<T>
where T : class, IHasLocation, IHasEnvironment
Inheritance
Object    ComponentBase    InputComponentBaseT    LocationPickerT

Type Parameters

T
Model that implements the IHasLocation interface.

Constructors

LocationPickerTInitializes a new instance of the LocationPickerT class

Properties

BlazorGoogleMapsKeyService Dependency injection for the IBlazorGoogleMapsKeyService to retrieve the Google Maps API key.
CosmosDb CosmosDB service for data storage and retrieval.
CurrentUser The currently signed-in user session data, which is used to determine the location of the item.
JsRuntime JavaScript runtime for interop with the Google Maps API.

Methods

SetParametersAsync Parameters are loaded manually for sake of performance; if we were to use System.Reflection magic, it would hurt performance if components were used in large numbers.
(Overrides InputComponentBaseTSetParametersAsync(ParameterView))

See Also