Reorganise project structure and namespaces. Remove Leaflet project and replace with Darnton.Blazor.Leaflet package.

This commit is contained in:
Bernard Darnton
2020-10-28 10:25:04 +13:00
parent 9576c5aa5b
commit 7dc4cea8ae
46 changed files with 431 additions and 441 deletions
@@ -0,0 +1,26 @@
namespace Darnton.Blazor.DeviceInterop.Geolocation
{
/// <summary>
/// An enumeration of error codes used by <see cref="GeolocationPositionError"/>.
/// <see href="https://developer.mozilla.org/en-US/docs/Web/API/GeolocationPositionError/code"/>.
/// </summary>
public enum GeolocationPositionErrorCode
{
/// <summary>
/// Geolocation failoed because the device does not support geolocation. Not part of W3C spec.
/// </summary>
DEVICE_NOT_SUPPORTED = 0,
/// <summary>
/// Geolocation failed because permission to access location was denied.
/// </summary>
PERMISSION_DENIED = 1,
/// <summary>
/// Geolocation failed because of an internal error on the device.
/// </summary>
POSITION_UNAVAILABLE = 2,
/// <summary>
/// Geolocation failed because no position was returned in time.
/// </summary>
TIMEOUT = 3
}
}