Skip to content

Extras

Map

Bit.BlazorUI.ExtrasGeoMapMaps

BitMap is a provider-pluggable interactive map. One API drives markers, vector shapes, GeoJSON and tile overlays across seven backends - Leaflet, MapLibre GL, Mapbox GL, OpenLayers, ArcGIS, Azure Maps and CesiumJS - and adds what they leave out, uniformly: two-way camera binding, marker clustering, Blazor-rendered popups, cooperative gestures, a keyboard and screen-reader story, loading states and theming that follows the app.

Clusters & layers

Clustering nearby markers, polylines, polygons, circles and GeoJSON, and switching the basemap and the tile overlays.

Clustering

Clustering merges nearby markers into a bubble showing their count; a click zooms to fit them and raises OnClusterClick. It runs inside BitMap, so it is the same on every provider, and the bubbles take the theme's primary color unless Color is set.

Use the arrow keys to pan the map, plus and minus to zoom, and Escape to leave the map.
Loading map…
Click a bubble to zoom into it.

Vector layers

Polylines, polygons, circles (radius in metres), rectangles and GeoJSON, each under an id and styled by BitMapVectorPathStyle - any CSS color, a theme variable included, or the theme's primary when unset. A click raises OnVectorClick, or OnGeoJsonFeatureClick with the feature's properties - treat those as untrusted data.

Use the arrow keys to pan the map, plus and minus to zoom, and Escape to leave the map.
Loading map…

Click a shape.

Layers

Switch the basemap with a new provider instance (credit the tile source in TileAttribution). AddTileOverlay stacks another XYZ source on top. SetLayerVisible, SetTileOverlayVisible, SetLayerStyle and SetTileOverlayOpacity change a layer while keeping its definition - a hidden layer, unlike a transparent one, no longer swallows clicks.

Use the arrow keys to pan the map, plus and minus to zoom, and Escape to leave the map.
Loading map…

Switch the basemap, or change the area and the labels.

Feedback

Found a mistake, a gap, or something that could be clearer? Every page and every component is one click from its source.