private async Task AddOverlay() { _mapoverlay = await GroundOverlay.CreateAsync(map1.JsRuntime, "https://www.lib.utexas.edu/maps/historical/newark_nj_1922.jpg", new LatLngBoundsLiteral() { North = 40.773941, South = 40.712216, East = -74.12544, West = -74.22655 }, new GroundOverlayOptions() { Opacity = 0.5 }); await _mapoverlay.SetMap(map1.InteropObject); }
private async Task RemoveOverlay() { await _mapoverlay.SetMap(null); }