WatchPosition(GeolocationOptions options, Action <GeolocationPosition> callback)
        {
            var id = await JSRuntime.Current.InvokeAsync <string>(GeolocationWatchPositionFunctionName, options);

            watchers.Add(id, callback);
            return(id);
        }
 public static Task <GeolocationPosition> GetCurrentPosition(GeolocationOptions options = null)
 {
     return(JSRuntime.Current.InvokeAsync <GeolocationPosition>(GeolocationGetCurrentPositionFunctionName, options));
 }