mirror of
https://github.com/farcasclaudiu/BlazorDeviceInterop.git
synced 2026-06-22 07:01:03 +03:00
Add project files.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user