Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.13 KB

File metadata and controls

34 lines (25 loc) · 1.13 KB

Spillgebees.Blazor.Map is a Blazor map component powered by Leaflet.

Registering the component

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" />

Usage

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: "&copy; OpenData Luxembourg",
        Wms: new WmsLayerOptions(
            Layers: "basemap",
            Format: "image/png",
            Transparent: false,
            Version: "1.3.0"))
};