Skip to content

Commit

Permalink
Merge pull request #1 from AnteaterKit/master
Browse files Browse the repository at this point in the history
update from source
  • Loading branch information
Gorniv committed Oct 2, 2017
2 parents 4238536 + fa889dd commit ba985d3
Show file tree
Hide file tree
Showing 54 changed files with 1,322 additions and 144 deletions.
49 changes: 45 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,49 @@
[Angular2]: https://angular.io/

#### Angular2 maps
![Yandex Maps API as an Angular2 components](https://raw.githubusercontent.com/AnteaterKit/angular2-yandex-maps/master/ya-an.png)
#### Yandex Maps API as an Angular2 components

Yandex Maps API as an Angular2 direcitive.
[Wiki](https://github.com/AnteaterKit/angular2-yandex-maps/wiki)

<!-- HTML CODE-->
<a href="https://snyk.io/test/npm/angular2-yandex-maps"><img src="https://snyk.io/test/npm/angular2-yandex-maps/badge.svg" alt="Known Vulnerabilities" data-canonical-src="https://snyk.io/test/npm/angular2-yandex-maps" style="max-width:100%;"></a>
[![npm version](https://badge.fury.io/js/angular2-yandex-maps.svg)](http://badge.fury.io/js/angular2-yandex-maps)
[![Downloads](https://img.shields.io/npm/dm/angular2-yandex-maps.svg)](https://www.npmjs.com/package/angular2-yandex-maps)


#### Live Demo Plnkr
#### Добавление маркеров admin panel
https://plnkr.co/edit/djaxM0nKECMynWLJwmjO?p=preview
#### Работа с большим числом объектов через ObjectManager
https://plnkr.co/edit/mq8VzzINPYXOInPOS2mQ?p=preview
#### Простая метка с balloon
https://plnkr.co/edit/2m3qE90MxPghI9DKjML6?p=preview
#### ngFor метки draggable
https://plnkr.co/edit/8njMNbV9vjYTSfyP3fxI?p=preview
#### Изменение позиций карты
https://plnkr.co/edit/9K1fAZbpgDDoZYUfIdVo?p=preview
#### Кластеры
https://plnkr.co/edit/rpJpm8FnWWsuJoScAFAN?p=preview
#### Изменение иконок
https://plnkr.co/edit/dm8EJt8Waa61yKsZRRrM?p=preview

#### Install
```bash
npm install angular2-yandex-maps
```

#### index.html
```
<html>
<head>
<script >
let exports = {};
</script>
</head>
```

#### Systemjs.config.js
```js

Expand Down Expand Up @@ -48,5 +83,11 @@ npm install angular2-yandex-maps
</ya-marker>
</ya-map>
```
Style.css
```
.map-container-inner
{
width: 300px;
height: 200px;
}
```
Binary file added angular2-yandex-maps-1.0.23.tgz
Binary file not shown.
6 changes: 5 additions & 1 deletion lib/core.module.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import { ModuleWithProviders } from '@angular/core';
import { YaMap } from './directives/ymap';
import { YaMarker } from './directives/marker';
export declare function coreDirectives(): (typeof YaMarker | typeof YaMap)[];
import { YaClaster } from './directives/claster';
import { YaObjectManager } from './directives/objectManager';
export * from './ya-maps-types';
export declare function coreDirectives(): (typeof YaMarker | typeof YaClaster | typeof YaObjectManager | typeof YaMap)[];
export declare class YaCoreModule {
static forRoot(): ModuleWithProviders;
}
export declare function YaCoreModuleForRoot(): ModuleWithProviders[];
28 changes: 22 additions & 6 deletions lib/core.module.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/core.module.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions lib/directives/ballon.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { SimpleChange } from '@angular/core';
import { BallonManager } from '../services/managers/ballon-manager';
export declare class YaBallon {
private _ballonManager;
latitude: number;
longitude: number;
private _markerAddedToManger;
private _id;
private _observableSubscriptions;
constructor(_ballonManager: BallonManager);
ngOnChanges(changes: {
[key: string]: SimpleChange;
}): void;
}
45 changes: 45 additions & 0 deletions lib/directives/ballon.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/directives/ballon.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions lib/directives/claster.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { OnChanges, OnDestroy, SimpleChange } from '@angular/core';
import { ClasterManager } from '../services/managers/claster-manager';
export declare class YaClaster implements OnChanges, OnDestroy {
private _clasterManager;
private _id;
markers: any[];
private _markerAddedToManger;
constructor(_clasterManager: ClasterManager);
ngOnChanges(changes: {
[key: string]: SimpleChange;
}): void;
private _addEventListeners();
ngOnDestroy(): void;
}
44 changes: 44 additions & 0 deletions lib/directives/claster.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/directives/claster.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 19 additions & 2 deletions lib/directives/marker.d.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,31 @@
import { SimpleChange } from '@angular/core';
import { EventEmitter, OnChanges, OnDestroy, SimpleChange } from '@angular/core';
import * as mapTypes from '../ya-maps-types';
import { MarkerManager } from '../services/managers/marker-manager';
export declare class YaMarker {
export declare class YaMarker implements OnChanges, OnDestroy {
private _markerManager;
latitude: number;
longitude: number;
balloonLayout: any;
balloonContentHeader: string;
balloonContentBody: string;
balloonContentFooter: string;
draggable: boolean;
preset: string;
iconContent: string;
showInfo: boolean;
iconLayout: any;
iconImageHref: any;
iconImageSize: any;
iconImageOffset: any;
private _markerAddedToManger;
private _id;
private _observableSubscriptions;
markerClick: EventEmitter<void>;
dragEnd: EventEmitter<mapTypes.MapMouseEvent>;
constructor(_markerManager: MarkerManager);
ngOnChanges(changes: {
[key: string]: SimpleChange;
}): void;
private _addEventListeners();
ngOnDestroy(): void;
}
56 changes: 43 additions & 13 deletions lib/directives/marker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ba985d3

Please sign in to comment.