Spillgebees.Blazor.Map is a Blazor map component powered by Leaflet.
This component comes with a JS initializer, as such it is bootstrapped when Blazor launches.
The only thing you need to do is to add this package's CSS file for styling.
Include it in the head tag:
<link href="_content/Spillgebees.Blazor.Map/Spillgebees.Blazor.Map.lib.module.css"
rel="stylesheet" />You can take a look at the demo pages for a few general usage examples: net10.0
WMS tile layers use the same TileLayer API as regular tile layers:
var tileLayers = new List<TileLayer>
{
new(
UrlTemplate: "https://wmts1.geoportail.lu/opendata/service",
Attribution: "© OpenData Luxembourg",
Wms: new WmsLayerOptions(
Layers: "basemap",
Format: "image/png",
Transparent: false,
Version: "1.3.0"))
};