angular8-yandex-maps
Advanced tools
Comparing version 18.0.0 to 18.0.1
@@ -14,3 +14,2 @@ import { AfterContentInit, EventEmitter, NgZone, OnChanges, OnDestroy, SimpleChanges } from '@angular/core'; | ||
* | ||
* @example | ||
* ```html | ||
@@ -17,0 +16,0 @@ * <ya-map [center]="[55.761952, 37.620739]"> |
@@ -16,3 +16,2 @@ import { EventEmitter, OnChanges, OnDestroy, OnInit } from '@angular/core'; | ||
* | ||
* @example | ||
* ```html | ||
@@ -19,0 +18,0 @@ * <ya-map [center]="[55.761952, 37.620739]"> |
@@ -14,3 +14,2 @@ import { EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; | ||
* | ||
* @example | ||
* ```html | ||
@@ -17,0 +16,0 @@ * <ya-map [center]="[55.761952, 37.620739]"> |
@@ -14,3 +14,2 @@ import { AfterViewInit, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, SimpleChanges } from '@angular/core'; | ||
* | ||
* @example | ||
* ```html | ||
@@ -17,0 +16,0 @@ * <ya-map |
@@ -16,3 +16,2 @@ import { EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; | ||
* | ||
* @example | ||
* ```html | ||
@@ -19,0 +18,0 @@ * <ya-map [center]="[55.761952, 37.620739]"> |
@@ -14,3 +14,2 @@ import { EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; | ||
* | ||
* @example | ||
* ```html | ||
@@ -17,0 +16,0 @@ * <ya-map [center]="[55.761952, 37.620739]"> |
@@ -12,3 +12,2 @@ import { EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; | ||
* | ||
* @example | ||
* ```html | ||
@@ -15,0 +14,0 @@ * <ya-map> |
@@ -14,3 +14,2 @@ import { EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; | ||
* | ||
* @example | ||
* ```html | ||
@@ -17,0 +16,0 @@ * <ya-map [center]="[55.751952, 37.600739]"> |
@@ -11,3 +11,2 @@ import { Observable } from 'rxjs'; | ||
* | ||
* @example | ||
* ```ts | ||
@@ -14,0 +13,0 @@ * import { YaApiLoaderService } from 'angular8-yandex-maps'; |
@@ -8,3 +8,2 @@ import { NgZone } from '@angular/core'; | ||
* | ||
* @example | ||
* ```ts | ||
@@ -11,0 +10,0 @@ * import { YaGeocoderService } from 'angular8-yandex-maps'; |
{ | ||
"name": "angular8-yandex-maps", | ||
"version": "18.0.0", | ||
"description": "Yandex.Maps Angular components that implement the Yandex.Maps JavaScript API", | ||
"version": "18.0.1", | ||
"description": "Yandex.Maps Angular components that implement the Yandex.Maps JavaScript API 2.0", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/ddubrava/angular8-yandex-maps.git" | ||
"url": "git+https://github.com/ddubrava/angular-yandex-maps.git" | ||
}, | ||
@@ -20,5 +20,5 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/ddubrava/angular8-yandex-maps/issues" | ||
"url": "https://github.com/ddubrava/angular-yandex-maps/issues" | ||
}, | ||
"homepage": "https://github.com/ddubrava/angular8-yandex-maps#readme", | ||
"homepage": "https://github.com/ddubrava/angular-yandex-maps#readme", | ||
"sideEffects": false, | ||
@@ -25,0 +25,0 @@ "module": "fesm2022/angular8-yandex-maps.mjs", |
@@ -1,3 +0,3 @@ | ||
<h1 align="center">Angular8-yandex-maps</h1> | ||
<p align="center">Yandex.Maps Angular components that implement the Yandex.Maps JavaScript API</p> | ||
<h1 align="center">angular8-yandex-maps</h1> | ||
<p align="center">Yandex.Maps Angular components that implement the Yandex.Maps JavaScript API 2.0</p> | ||
@@ -13,4 +13,4 @@ <p align="center"> | ||
<a href="https://codecov.io/gh/ddubrava/angular8-yandex-maps"> | ||
<img src="https://codecov.io/gh/ddubrava/angular8-yandex-maps/branch/main/graph/badge.svg?token=ZU50NBBBH6" alt="Codecov"> | ||
<a href="https://codecov.io/gh/ddubrava/angular-yandex-maps" > | ||
<img src="https://codecov.io/gh/ddubrava/angular-yandex-maps/graph/badge.svg?token=ZU50NBBBH6&flag=angular-yandex-maps-v2" alt="Codecov"/> | ||
</a> | ||
@@ -20,5 +20,5 @@ </p> | ||
<h4 align="center"> | ||
<a href="https://ddubrava.github.io/angular8-yandex-maps">📄 Documentation</a> | | ||
<a href="https://ddubrava.github.io/angular8-yandex-maps/#/examples">🗺️ Examples</a> | | ||
<a href="https://ddubrava.github.io/angular8-yandex-maps/#/faq">❓ FAQ</a> | ||
<a href="https://ddubrava.github.io/angular-yandex-maps/#/v2/">📄 Documentation</a> | | ||
<a href="https://ddubrava.github.io/angular-yandex-maps/#/v2/examples">🗺️ Examples</a> | | ||
<a href="https://ddubrava.github.io/angular-yandex-maps/#/v2/faq">❓ FAQ</a> | ||
</h4> | ||
@@ -44,3 +44,3 @@ | ||
Documentation for older versions can be found using the [branches](https://github.com/ddubrava/angular8-yandex-maps/branches/all). | ||
Documentation for older versions can be found using the [branches](https://github.com/ddubrava/angular-yandex-maps/branches/all). | ||
@@ -68,64 +68,48 @@ ## Usage | ||
### SCAM | ||
### Standalone | ||
#### app.module.ts | ||
#### component.ts | ||
###### Default map config options | ||
```typescript | ||
```ts | ||
import { Component } from '@angular/core'; | ||
import { AngularYandexMapsModule } from 'angular8-yandex-maps'; | ||
@NgModule({ | ||
@Component({ | ||
standalone: true, | ||
imports: [AngularYandexMapsModule], | ||
}) | ||
export class AppModule {} | ||
export class AppComponent {} | ||
``` | ||
###### Own map config options | ||
#### app.config.ts | ||
```typescript | ||
import { AngularYandexMapsModule, YaConfig } from 'angular8-yandex-maps'; | ||
import { ApplicationConfig, importProvidersFrom } from '@angular/core'; | ||
import { YaConfig, AngularYandexMapsModule } from 'angular8-yandex-maps'; | ||
const mapConfig: YaConfig = { | ||
const config: YaConfig = { | ||
apikey: 'API_KEY', | ||
lang: 'en_US', | ||
}; | ||
@NgModule({ | ||
imports: [AngularYandexMapsModule.forRoot(mapConfig)], | ||
}) | ||
export class AppModule {} | ||
export const appConfig: ApplicationConfig = { | ||
providers: [importProvidersFrom(AngularYandexMapsModule.forRoot(config))], | ||
}; | ||
``` | ||
### Standalone | ||
### SCAM | ||
###### Default map config options | ||
#### app.module.ts | ||
```typescript | ||
import { AngularYandexMapsModule } from 'angular8-yandex-maps'; | ||
import { NgModule } from '@angular/core'; | ||
import { AngularYandexMapsModule, YaConfig } from 'angular8-yandex-maps'; | ||
@Component({ | ||
selector: 'app-component', | ||
standalone: true, | ||
imports: [AngularYandexMapsModule], | ||
}) | ||
export class Component {} | ||
``` | ||
###### Own map config options | ||
#### app.config.ts | ||
```typescript | ||
import { ApplicationConfig, importProvidersFrom } from '@angular/core'; | ||
import { YaConfig, AngularYandexMapsModule } from 'angular8-yandex-maps'; | ||
const mapConfig: YaConfig = { | ||
const config: YaConfig = { | ||
apikey: 'API_KEY', | ||
lang: 'en_US', | ||
}; | ||
export const appConfig: ApplicationConfig = { | ||
providers: [importProvidersFrom(AngularYandexMapsModule.forRoot(mapConfig))], | ||
}; | ||
@NgModule({ | ||
imports: [AngularYandexMapsModule.forRoot(mapConfig)], | ||
}) | ||
export class AppModule {} | ||
``` |
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
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
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
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
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
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
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1171098
10013
112