示例#1
0
 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);;
 }
示例#2
0
 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);
 }
示例#3
0
 internal async Task InitializeMap(string mapControlId, AzureMapsControlConfiguration mapOptions)
 {
     var module = await this.moduleTask.Value;
     await module.InvokeVoidAsync("InitializeMap", mapControlId, mapOptions, "BlazorRestaurant.Components", "OnMapInitialized");
 }