public async Task <Polyline> CreateAndAddToMap(IEnumerable <LatLng> latLngs, Map map, PolylineOptions options) { Polyline polyline = await this.Create(latLngs, options); await polyline.AddTo(map); return(polyline); }
public async Task <Polyline> Create(IEnumerable <LatLng> latLngs, PolylineOptions options) { IJSObjectReference jsReference = await this.jsRuntime.InvokeAsync <IJSObjectReference>(create, latLngs, options); return(new Polyline(jsReference, this.eventedJsInterop)); }