BlazorBasics.Maps.Entities 1.2.0

dotnet add package BlazorBasics.Maps.Entities --version 1.2.0
                    
NuGet\Install-Package BlazorBasics.Maps.Entities -Version 1.2.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BlazorBasics.Maps.Entities" Version="1.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BlazorBasics.Maps.Entities" Version="1.2.0" />
                    
Directory.Packages.props
<PackageReference Include="BlazorBasics.Maps.Entities" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add BlazorBasics.Maps.Entities --version 1.2.0
                    
#r "nuget: BlazorBasics.Maps.Entities, 1.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package BlazorBasics.Maps.Entities@1.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=BlazorBasics.Maps.Entities&version=1.2.0
                    
Install as a Cake Addin
#tool nuget:?package=BlazorBasics.Maps.Entities&version=1.2.0
                    
Install as a Cake Tool

BlazorBasics.Maps Library Documentation

Overview

The BlazorBasics.Maps library to use common dependencies in BlazorBasics.Maps.Google and BlazorBasics.Maps.Leaflet

Models

The library includes two main models:

  • AddressDetails:

    • Represents full address.
    • Implement from IAddressDetails
    • Properties:
      • StreetNumber
      • Route
      • Neighborhood
      • Locality: Typically refers to the city or town name.
      • AdministrativeArea: Typically refers to the state, province, or region.
      • PostalCode
      • Country
  • PositionPoint:

    • Represents a geographic coordinate with Latitude and Longitude.
    • Implement from ILatLong and IEquatable<PositionPoint>
    • Validates coordinates to ensure they are within valid ranges (Latitude: -90 to 90, Longitude: -180 to 180).
    • Example:
      var point = new PositionPoint(latitude: 37.7749f, longitude: -122.4194f);
      
  • MapClickEventArgs:

    • Event arguments for the OnClick callback. Contains information about the point where the click was made.
    • Properties:
      • MarkerId: The marker ID if one was clicked; otherwise, null.
      • Point: A ILatLong object with the click coordinates.
      • Address: A string containing the address formatted at the point of the click (reverse geocoding).
      • Details: An IAddressDetails object with the address components broken down.

Interfaces

  • IAddressDetails

    • Contains the broken-down components of an address obtained from reverse geocoding.
    • Properties:
      • StreetNumber
      • Route
      • Neighborhood
      • Locality: (city)
      • AdministrativeArea: (state/province)
      • Postal Code
      • Country
  • ILatLong

    • Contains latitude and longitude.
    • Properties:
      • Latitude
      • Longitude

Contributing

If you encounter issues or have suggestions for improvements, please submit an issue or pull request to the repository hosting this library.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on BlazorBasics.Maps.Entities:

Package Downloads
BlazorBasics.Maps.Google

A Blazor component for integrating Google Maps into your applications. Easily display interactive maps, add custom markers, show routes with waypoints, and manage map interactions using a simple C# interface. Requires a Google Maps API key and the Maps JavaScript API.

BlazorBasics.Maps.Leaflet

A Blazor component for integrating Leaflet Javascrip Map into your applications. Easily display interactive maps, add custom markers, show routes with waypoints, and manage map interactions using a simple C# interface.

BlazorBasics.Maps.Services

A lightweight and efficient Blazor service for interacting with the Browser's **Geolocation API**.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.0 632 11/17/2025

First release.