public static async Task <Map> CreateAsync( IJSRuntime jsRuntime, ElementReference mapDiv, MapOptions opts = null) { var jsObjectRef = await JsObjectRef.CreateAsync(jsRuntime, "google.maps.Map", mapDiv, opts); var dataObjectRef = await jsObjectRef.GetObjectReference("data"); var data = new MapData(dataObjectRef); var map = new Map(jsObjectRef, data); JsObjectRefInstances.Add(map); return(map); }
public Task SetOptions(MapOptions mapOptions) { return(_jsObjectRef.InvokeAsync("setOptions", mapOptions)); }