@ng-web-apis/geolocation
Advanced tools
Comparing version 2.0.0 to 3.0.0
@@ -94,2 +94,60 @@ (function (global, factory) { | ||
} | ||
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { | ||
function accept(f) { if (f !== void 0 && typeof f !== "function") | ||
throw new TypeError("Function expected"); return f; } | ||
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; | ||
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; | ||
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); | ||
var _, done = false; | ||
for (var i = decorators.length - 1; i >= 0; i--) { | ||
var context = {}; | ||
for (var p in contextIn) | ||
context[p] = p === "access" ? {} : contextIn[p]; | ||
for (var p in contextIn.access) | ||
context.access[p] = contextIn.access[p]; | ||
context.addInitializer = function (f) { if (done) | ||
throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; | ||
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); | ||
if (kind === "accessor") { | ||
if (result === void 0) | ||
continue; | ||
if (result === null || typeof result !== "object") | ||
throw new TypeError("Object expected"); | ||
if (_ = accept(result.get)) | ||
descriptor.get = _; | ||
if (_ = accept(result.set)) | ||
descriptor.set = _; | ||
if (_ = accept(result.init)) | ||
initializers.push(_); | ||
} | ||
else if (_ = accept(result)) { | ||
if (kind === "field") | ||
initializers.push(_); | ||
else | ||
descriptor[key] = _; | ||
} | ||
} | ||
if (target) | ||
Object.defineProperty(target, contextIn.name, descriptor); | ||
done = true; | ||
} | ||
; | ||
function __runInitializers(thisArg, initializers, value) { | ||
var useValue = arguments.length > 2; | ||
for (var i = 0; i < initializers.length; i++) { | ||
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); | ||
} | ||
return useValue ? value : void 0; | ||
} | ||
; | ||
function __propKey(x) { | ||
return typeof x === "symbol" ? x : "".concat(x); | ||
} | ||
; | ||
function __setFunctionName(f, name, prefix) { | ||
if (typeof name === "symbol") | ||
name = name.description ? "[".concat(name.description, "]") : ""; | ||
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); | ||
} | ||
; | ||
function __metadata(metadataKey, metadataValue) { | ||
@@ -126,3 +184,3 @@ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") | ||
throw new TypeError("Generator is already executing."); | ||
while (_) | ||
while (g && (g = 0, op[0] && (_ = 0)), _) | ||
try { | ||
@@ -295,3 +353,3 @@ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) | ||
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; | ||
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } | ||
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } | ||
} | ||
@@ -369,4 +427,2 @@ function __asyncValues(o) { | ||
// TODO: Replace type with GeolocationPosition after bumping TS to 4.1.3+ | ||
// @dynamic | ||
var GeolocationService = /** @class */ (function (_super) { | ||
@@ -387,5 +443,5 @@ __extends(GeolocationService, _super); | ||
}(rxjs.Observable)); | ||
GeolocationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: GeolocationService, deps: [{ token: GEOLOCATION }, { token: GEOLOCATION_SUPPORT }, { token: POSITION_OPTIONS }], target: i0__namespace.ɵɵFactoryTarget.Injectable }); | ||
GeolocationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: GeolocationService, providedIn: 'root' }); | ||
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: GeolocationService, decorators: [{ | ||
GeolocationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GeolocationService, deps: [{ token: GEOLOCATION }, { token: GEOLOCATION_SUPPORT }, { token: POSITION_OPTIONS }], target: i0__namespace.ɵɵFactoryTarget.Injectable }); | ||
GeolocationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GeolocationService, providedIn: 'root' }); | ||
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: GeolocationService, decorators: [{ | ||
type: i0.Injectable, | ||
@@ -392,0 +448,0 @@ args: [{ |
/** | ||
* Generated bundle index. Do not edit. | ||
*/ | ||
export * from './public-api'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctd2ViLWFwaXMtZ2VvbG9jYXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9wcm9qZWN0cy9nZW9sb2NhdGlvbi9zcmMvbmctd2ViLWFwaXMtZ2VvbG9jYXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ== | ||
export * from './index'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctd2ViLWFwaXMtZ2VvbG9jYXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9saWJzL2dlb2xvY2F0aW9uL3NyYy9uZy13ZWItYXBpcy1nZW9sb2NhdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ== |
@@ -8,4 +8,2 @@ import { Inject, Injectable } from '@angular/core'; | ||
import * as i0 from "@angular/core"; | ||
// TODO: Replace type with GeolocationPosition after bumping TS to 4.1.3+ | ||
// @dynamic | ||
export class GeolocationService extends Observable { | ||
@@ -23,5 +21,5 @@ constructor(geolocationRef, geolocationSupported, positionOptions) { | ||
} | ||
GeolocationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: GeolocationService, deps: [{ token: GEOLOCATION }, { token: GEOLOCATION_SUPPORT }, { token: POSITION_OPTIONS }], target: i0.ɵɵFactoryTarget.Injectable }); | ||
GeolocationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: GeolocationService, providedIn: 'root' }); | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: GeolocationService, decorators: [{ | ||
GeolocationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: GeolocationService, deps: [{ token: GEOLOCATION }, { token: GEOLOCATION_SUPPORT }, { token: POSITION_OPTIONS }], target: i0.ɵɵFactoryTarget.Injectable }); | ||
GeolocationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: GeolocationService, providedIn: 'root' }); | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ng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A9IDA7XG5cbiAgICAgICAgc3VwZXIoc3Vic2NyaWJlciA9PiB7XG4gICAgICAgICAgICBpZiAoIWdlb2xvY2F0aW9uU3VwcG9ydGVkKSB7XG4gICAgICAgICAgICAgICAgc3Vic2NyaWJlci5lcnJvcignR2VvbG9jYXRpb24gaXMgbm90IHN1cHBvcnRlZCBpbiB5b3VyIGJyb3dzZXInKTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgd2F0Y2hQb3NpdGlvbklkID0gZ2VvbG9jYXRpb25SZWYud2F0Y2hQb3NpdGlvbihcbiAgICAgICAgICAgICAgICBwb3NpdGlvbiA9PiBzdWJzY3JpYmVyLm5leHQocG9zaXRpb24pLFxuICAgICAgICAgICAgICAgIHBvc2l0aW9uRXJyb3IgPT4gc3Vic2NyaWJlci5lcnJvcihwb3NpdGlvbkVycm9yKSxcbiAgICAgICAgICAgICAgICBwb3NpdGlvbk9wdGlvbnMsXG4gICAgICAgICAgICApO1xuICAgICAgICB9KTtcblxuICAgICAgICByZXR1cm4gdGhpcy5waXBlKFxuICAgICAgICAgICAgZmluYWxpemUoKCkgPT4gZ2VvbG9jYXRpb25SZWYuY2xlYXJXYXRjaCh3YXRjaFBvc2l0aW9uSWQpKSxcbiAgICAgICAgICAgIHNoYXJlUmVwbGF5KHtidWZmZXJTaXplOiAxLCByZWZDb3VudDogdHJ1ZX0pLFxuICAgICAgICApIGFzIEdlb2xvY2F0aW9uU2VydmljZTtcbiAgICB9XG59XG4iXX0= |
import { InjectionToken } from '@angular/core'; | ||
export const POSITION_OPTIONS = new InjectionToken('Token for an additional position options', { factory: () => ({}) }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2VvbG9jYXRpb24tb3B0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2dlb2xvY2F0aW9uL3NyYy90b2tlbnMvZ2VvbG9jYXR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yJpbXBvcnQge0luamVjdGlvblRva2VufSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuZXhwb3J0IGNvbnN0IFBPU0lUSU9OX09QVElPTlMgPSBuZXcgSW5qZWN0aW9uVG9rZW48UG9zaXRpb25PcHRpb25zPihcbiAgICAnVG9rZW4gZm9yIGFuIGFkZGl0aW9uYWwgcG9zaXRpb24gb3B0aW9ucycsXG4gICAge2ZhY3Rvcnk6ICgpID0+ICh7fSl9LFxuKTtcbiJdfQ== |
@@ -8,2 +8,2 @@ import { inject, InjectionToken } from '@angular/core'; | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2VvbG9jYXRpb24tc3VwcG9ydC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2dlb2xvY2F0aW9uL3NyYy90b2tlbnMvZ2VvbG9jYXRpb24tc3VwcG9ydC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsTUFBTSxFQUFFLGNBQWMsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUNyRCxPQUFPLEVBQUMsV0FBVyxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBRTFDLE1BQU0sQ0FBQyxNQUFNLG1CQUFtQixHQUFHLElBQUksY0FBYyxDQUNqRCwrQkFBK0IsRUFDL0I7SUFDSSxPQUFPLEVBQUUsR0FBRyxFQUFFO1FBQ1YsT0FBTyxDQUFDLENBQUMsTUFBTSxDQUFDLFdBQVcsQ0FBQyxDQUFDO0lBQ2pDLENBQUM7Q0FDSixDQUNKLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge2luamVjdCwgSW5qZWN0aW9uVG9rZW59IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHtHRU9MT0NBVElPTn0gZnJvbSAnLi9nZW9sb2NhdGlvbic7XG5cb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aW9uVG9rZW48Ym9vbGVhbj4oXG4gICAgJ0lzIEdlb2xvY2F0aW9uIEFQSSBzdXBwb3J0ZWQ/JyxcbiAgICB7XG4gICAgICAgIGZhY3Rvcnk6ICgpID0+IHtcbiAgICAgICAgICAgIHJldHVybiAhIWluamVjdChHRU9MT0NBVElPTik7XG4gICAgICAgIH0sXG4gICAgfSxcbik7XG4iXX0= |
@@ -6,2 +6,2 @@ import { inject, InjectionToken } from '@angular/core'; | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2VvbG9jYXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9nZW9sb2NhdGlvbi9zcmMvdG9rZW5zL2dlb2xvY2F0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxNQUFNLEVBQUUsY0FBYyxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3JELE9BQU8sRUFBQyxTQUFTLEVBQUMsTUFBTSxxQkFBcUIsQ0FBQztBQUU5QyxNQUFNLENBQUMsTUFBTSxXQUFXLEdBQUcsSUFBSSxjQUFjLENBQ3pDLHlEQUF5RCxFQUN6RDtJQUNJLE9BQU8sRUFBRSxHQUFHLEVBQUUsQ0FBQyxNQUFNLENBQUMsU0FBUyxDQUFDLENBQUMsV0FBVztDQUMvQyxDQUNKLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge2luamVjdCwgSW5qZWN0aW9uVG9rZW59IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHtOQVZJR0FUT1J9IGZyb20gJ0BuZy13ZWItYXBpcy9jb21tb24nO1xuXG5leHBvcnQgY29uc3QgR0VPTE9DQVRJT04gPSBuZXcgSW5qZWN0aW9uVG9rZW48R2VvbG9jYXRpb24+KFxuICAgICdBbiBhYnN0cmFjdGlvbiB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ZWN0KE5BVklHQVRPUikuZ2VvbG9jYXRpb24sXG4gICAgfSxcbik7XG4iXX0= |
@@ -19,4 +19,2 @@ import * as i0 from '@angular/core'; | ||
// TODO: Replace type with GeolocationPosition after bumping TS to 4.1.3+ | ||
// @dynamic | ||
class GeolocationService extends Observable { | ||
@@ -34,5 +32,5 @@ constructor(geolocationRef, geolocationSupported, positionOptions) { | ||
} | ||
GeolocationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: GeolocationService, deps: [{ token: GEOLOCATION }, { token: GEOLOCATION_SUPPORT }, { token: POSITION_OPTIONS }], target: i0.ɵɵFactoryTarget.Injectable }); | ||
GeolocationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: GeolocationService, providedIn: 'root' }); | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: GeolocationService, decorators: [{ | ||
GeolocationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: GeolocationService, deps: [{ token: GEOLOCATION }, { token: GEOLOCATION_SUPPORT }, { token: POSITION_OPTIONS }], target: i0.ɵɵFactoryTarget.Injectable }); | ||
GeolocationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: GeolocationService, providedIn: 'root' }); | ||
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: GeolocationService, decorators: [{ | ||
type: Injectable, | ||
@@ -39,0 +37,0 @@ args: [{ |
@@ -5,3 +5,2 @@ /** | ||
/// <amd-module name="@ng-web-apis/geolocation" /> | ||
export * from './public-api'; | ||
//# sourceMappingURL=ng-web-apis-geolocation.d.ts.map | ||
export * from './index'; |
{ | ||
"name": "@ng-web-apis/geolocation", | ||
"version": "2.0.0", | ||
"peerDependencies": { | ||
"@angular/common": ">=6.0.0", | ||
"@angular/core": ">=6.0.0", | ||
"@ng-web-apis/common": ">=1.0.0" | ||
}, | ||
"version": "3.0.0", | ||
"description": "This is a library for declarative use of Geolocation API with Angular", | ||
@@ -18,3 +13,6 @@ "keywords": [ | ||
], | ||
"license": "MIT", | ||
"homepage": "https://github.com/tinkoff/common/blob/main/libs/geolocation/README.md", | ||
"bugs": "https://github.com/tinkoff/ng-web-apis/issues", | ||
"repository": "https://github.com/tinkoff/ng-web-apis", | ||
"license": "Apache-2.0", | ||
"author": { | ||
@@ -28,8 +26,10 @@ "name": "Vladimir Potekhin", | ||
], | ||
"repository": "https://github.com/ng-web-apis/geolocation", | ||
"bugs": "https://github.com/ng-web-apis/geolocation/issues", | ||
"dependencies": { | ||
"tslib": "^2.0.0" | ||
}, | ||
"homepage": "https://github.com/ng-web-apis/geolocation#README", | ||
"peerDependencies": { | ||
"@angular/common": ">=6.0.0", | ||
"@angular/core": ">=6.0.0", | ||
"@ng-web-apis/common": ">=1.0.0" | ||
}, | ||
"main": "bundles/ng-web-apis-geolocation.umd.js", | ||
@@ -36,0 +36,0 @@ "module": "fesm2015/ng-web-apis-geolocation.js", |
@@ -1,16 +0,13 @@ | ||
# Geolocation API for Angular | ||
# ![ng-web-apis logo](logo.svg) Geolocation API for Angular | ||
> Part of [Web APIs for Angular](https://ng-web-apis.github.io/) | ||
[![npm version](https://img.shields.io/npm/v/@ng-web-apis/geolocation.svg)](https://npmjs.com/package/@ng-web-apis/geolocation) | ||
![npm bundle size](https://img.shields.io/bundlephobia/minzip/@ng-web-apis/geolocation) | ||
[![.github/workflows/ci.yml](https://github.com/ng-web-apis/geolocation/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/ng-web-apis/geolocation/actions/workflows/ci.yml) | ||
[![Coveralls github](https://img.shields.io/coveralls/github/ng-web-apis/geolocation)](https://coveralls.io/github/ng-web-apis/geolocation?branch=master) | ||
[![angular-open-source-starter](https://img.shields.io/badge/made%20with-angular--open--source--starter-d81676?logo=angular)](https://github.com/TinkoffCreditSystems/angular-open-source-starter) | ||
This is an `Observable` based abstraction over [Geolocation API](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API) to use with Angular | ||
This is an `Observable` based abstraction over | ||
[Geolocation API](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API) to use with Angular | ||
## Install | ||
If you do not have [@ng-web-apis/common](https://github.com/ng-web-apis/common): | ||
If you do not have [@ng-web-apis/common](https://github.com/tinkoff/ng-web-apis/tree/main/libs/common): | ||
@@ -31,3 +28,4 @@ ``` | ||
`GeolocationService` is an `Observable`, that emits [Position](https://developer.mozilla.org/en-US/docs/Web/API/GeolocationPosition) object | ||
`GeolocationService` is an `Observable`, that emits | ||
[Position](https://developer.mozilla.org/en-US/docs/Web/API/GeolocationPosition) object | ||
@@ -49,3 +47,4 @@ Import service in your component: | ||
If you need to get position just once and stop observing user location, you can subscribe to `geolocation$` and use `take(1)` RxJs operator: | ||
If you need to get position just once and stop observing user location, you can subscribe to `geolocation$` and use | ||
`take(1)` RxJs operator: | ||
@@ -60,3 +59,3 @@ ```js | ||
<div *ngIf="geolocation$ | async as position"> | ||
<span>{{position.coords.latitude}}</span> | ||
<span>{{position.coords.latitude}}</span> | ||
</div> | ||
@@ -69,6 +68,7 @@ ``` | ||
The library also provides some tokens to simplify working with [Geolocation API](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API): | ||
The library also provides some tokens to simplify working with | ||
[Geolocation API](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API): | ||
- `GEOLOCATION_SUPPORT` returns `true` if user's browser supports | ||
[Geolocation API](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API) | ||
- `GEOLOCATION_SUPPORT` returns `true` if user's browser supports | ||
[Geolocation API](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API) | ||
@@ -83,5 +83,5 @@ ```js | ||
- You can provide [PositionOptions](https://developer.mozilla.org/en-US/docs/Web/API/PositionOptions) | ||
through `POSITION_OPTIONS` token with optional properties named `enableHighAccuracy`, `timeout` and `maximumAge`. | ||
It uses `{}` by default. | ||
- You can provide [PositionOptions](https://developer.mozilla.org/en-US/docs/Web/API/PositionOptions) through | ||
`POSITION_OPTIONS` token with optional properties named `enableHighAccuracy`, `timeout` and `maximumAge`. It uses `{}` | ||
by default. | ||
@@ -101,4 +101,4 @@ ```js | ||
- [navigator.geolocation](https://developer.mozilla.org/ru/docs/Web/API/Navigator/geolocation) | ||
can be injected through `GEOLOCATION` token. | ||
- [navigator.geolocation](https://developer.mozilla.org/ru/docs/Web/API/Navigator/geolocation) can be injected through | ||
`GEOLOCATION` token. | ||
@@ -113,13 +113,14 @@ ## Browser support | ||
You can [try online demo here](https://ng-web-apis.github.io/geolocation) | ||
You can [try online demo here](https://tinkoff.github.io/ng-web-apis/geolocation) | ||
## See also | ||
Other [Web APIs for Angular](https://ng-web-apis.github.io/) by [@ng-web-apis](https://github.com/ng-web-apis) | ||
Other [Web APIs for Angular](https://tinkoff.github.io/ng-web-apis/) by | ||
[@ng-web-apis](https://github.com/tinkoff/ng-web-apis) | ||
## Open-source | ||
Do you also want to open-source something, but hate the collateral work? | ||
Check out this [Angular Open-source Library Starter](https://github.com/TinkoffCreditSystems/angular-open-source-starter) | ||
we’ve created for our projects. It got you covered on continuous integration, | ||
pre-commit checks, linting, versioning + changelog, code coverage and all that jazz. | ||
Do you also want to open-source something, but hate the collateral work? Check out this | ||
[Angular Open-source Library Starter](https://github.com/TinkoffCreditSystems/angular-open-source-starter) we’ve created | ||
for our projects. It got you covered on continuous integration, pre-commit checks, linting, versioning + changelog, code | ||
coverage and all that jazz. |
import { Observable } from 'rxjs'; | ||
import * as i0 from "@angular/core"; | ||
export declare class GeolocationService extends Observable<Parameters<PositionCallback>[0]> { | ||
export declare class GeolocationService extends Observable<GeolocationPosition> { | ||
constructor(geolocationRef: Geolocation, geolocationSupported: boolean, positionOptions: PositionOptions); | ||
@@ -8,2 +8,1 @@ static ɵfac: i0.ɵɵFactoryDeclaration<GeolocationService, never>; | ||
} | ||
//# sourceMappingURL=geolocation.service.d.ts.map |
import { InjectionToken } from '@angular/core'; | ||
export declare const POSITION_OPTIONS: InjectionToken<PositionOptions>; | ||
//# sourceMappingURL=geolocation-options.d.ts.map |
import { InjectionToken } from '@angular/core'; | ||
export declare const GEOLOCATION_SUPPORT: InjectionToken<boolean>; | ||
//# sourceMappingURL=geolocation-support.d.ts.map |
import { InjectionToken } from '@angular/core'; | ||
export declare const GEOLOCATION: InjectionToken<Geolocation>; | ||
//# sourceMappingURL=geolocation.d.ts.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
103890
601
120
20
1