public async Task <CircleMarker> CreateAndAddToMap(LatLng latLng, Map map, CircleMarkerOptions options) { CircleMarker circleMarker = await this.Create(latLng, options); await circleMarker.AddTo(map); return(circleMarker); }
public async Task <CircleMarker> Create(LatLng latLng, CircleMarkerOptions options) { IJSObjectReference jsReference = await this.jsRuntime.InvokeAsync <IJSObjectReference>(create, latLng, options); return(new CircleMarker(jsReference, this.eventedJsInterop)); }