A collection of intelligent Blazor components for maps and location-based UI.
Fritz.Charlie.Components contains reusable Blazor components, services and client assets for building web-based user interfaces with ASP.NET Core. Components are implemented as Razor components with C# code-behind, scoped CSS and JavaScript interop.
ChatterMapDirect.razor+ChatterMapDirect.razor.cs— primary map component with scoped CSS (ChatterMapDirect.razor.css).Map/— interfaces and models for the map (for exampleIViewerLocationService,ViewerLocationEvent).wwwroot/chattermap.js— client-side helpers used by the components.
Services/— services such asChatterMapServiceandLocationTextService._Imports.razorand_Usings.cs— shared usings and imports for consumers.
- Clone the repository and open the solution:
- git clone
- dotnet build Fritz.Charlie.Components.sln
- Add the project as a project reference to your Blazor app, or build and publish a NuGet package.
- Use the component in a page (ensure the library namespace is imported):
- Add
@using Fritz.Charlie.Componentsto_Imports.razoror the page. - Place the component in a Razor page:
- Add
- Build the solution:
dotnet build Fritz.Charlie.Components.sln - Run unit tests:
dotnet test ./Test.Components/Test.Components.csproj
- The project uses scoped CSS for components (
*.razor.css) and serves static assets fromwwwroot. - Targets .NET 9.0 and follows SDK-style project layout.
- Check
.razor.csfiles for component logic andServices/for helper services.
Contributions are welcome. Please open issues or pull requests. When contributing:
- Run and add unit tests under
Test.Components. - Follow the existing coding style and add XML comments for public APIs.
See the LICENSE file in the repository for license details.