mirror of
https://github.com/farcasclaudiu/BlazorDeviceInterop.git
synced 2026-06-22 07:01:03 +03:00
15 lines
411 B
C#
15 lines
411 B
C#
using BlazorDeviceInterop.Components.LeafletMap;
|
|
using BlazorDeviceInterop.Geolocation;
|
|
|
|
namespace BlazorDeviceTestRig.Geolocation
|
|
{
|
|
public static class GeolocationPositionExtension
|
|
{
|
|
public static LatLng ToLeafletLatLng(this GeolocationPosition position)
|
|
{
|
|
var coords = position.Coords;
|
|
return new LatLng(coords.Latitude, coords.Longitude);
|
|
}
|
|
}
|
|
}
|