コード例 #1
0
        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);
        }
コード例 #2
0
        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));
        }