public async Task InitializeMap() { AzureMapsControlConfiguration options = new AzureMapsControlConfiguration() { Center = RouteStart, Language = "en-US", Zoom = 12, AuthOptions = new AuthenticationOptions() { AuthType = "subscriptionKey", SubscriptionKey = this.SubscriptionKey } }; await module.InitializeMap(mapControlId : MapsControlId, mapOptions : options);; }
internal async Task SearchRoute(string mapControlId, AzureMapsControlConfiguration mapOptions, GeoCoordinates startingPoint, GeoCoordinates finalPoint, GeoCoordinates[] pointsInRoute) { var module = await this.moduleTask.Value; await module.InvokeVoidAsync("SearchRoute", mapControlId, mapOptions, startingPoint, finalPoint, pointsInRoute); }
internal async Task InitializeMap(string mapControlId, AzureMapsControlConfiguration mapOptions) { var module = await this.moduleTask.Value; await module.InvokeVoidAsync("InitializeMap", mapControlId, mapOptions, "BlazorRestaurant.Components", "OnMapInitialized"); }