Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular8-yandex-maps

Package Overview
Dependencies
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular8-yandex-maps - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

esm2015/lib/components/yandex-placemark-component/yandex-placemark.component.js

3

angular8-yandex-maps.d.ts

@@ -6,2 +6,3 @@ /**

export { YandexMapComponent as ɵa } from './lib/components/yandex-map-component/yandex-map.component';
export { YandexMapService as ɵb } from './lib/services/yandex-map/yandex-map.service';
export { YandexPlacemarkComponent as ɵb } from './lib/components/yandex-placemark-component/yandex-placemark.component';
export { YandexMapService as ɵc } from './lib/services/yandex-map/yandex-map.service';

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":4,"exports":[{"export":[{"name":"YandexMapModule","as":"YandexMapModule"}],"from":"./lib/types/yandex-map.type"}],"metadata":{"AngularYandexMapsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":5,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵa"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":10,"character":4}],"exports":[{"__symbolic":"reference","name":"ɵa"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["apiKey"],"value":{"ngModule":{"__symbolic":"reference","name":"AngularYandexMapsModule"},"providers":[{"provide":"API_KEY","useValue":{"__symbolic":"reference","name":"apiKey"}}]}}}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":5,"character":1},"arguments":[{"selector":"angular-yandex-map","template":"<div id=\"map\"></div>","styles":["#map{width:100%;height:100%}"]}]}],"members":{"mapState":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":11,"character":3}}]}],"mapOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":12,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵb"}]}],"ngOnInit":[{"__symbolic":"method"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":6,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":14,"character":33}]}],"_loadScript":[{"__symbolic":"method"}],"_createMap":[{"__symbolic":"method"}],"initMap":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}}},"origins":{"AngularYandexMapsModule":"./lib/angular-yandex-maps.module","ɵa":"./lib/components/yandex-map-component/yandex-map.component","ɵb":"./lib/services/yandex-map/yandex-map.service"},"importAs":"angular8-yandex-maps"}
{"__symbolic":"module","version":4,"exports":[{"export":[{"name":"YandexMapModule","as":"YandexMapModule"}],"from":"./lib/types/yandex-map.type"}],"metadata":{"AngularYandexMapsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":6,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":12,"character":4}],"exports":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["apiKey"],"value":{"ngModule":{"__symbolic":"reference","name":"AngularYandexMapsModule"},"providers":[{"provide":"API_KEY","useValue":{"__symbolic":"reference","name":"apiKey"}}]}}}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"angular-yandex-map","template":"<div class=\"map-container\" #mapContainer></div>","styles":[".map-container{width:100%;height:100%}"]}]}],"members":{"mapContainer":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":12,"character":3},"arguments":["mapContainer",{"static":true}]}]}],"placemarks":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":13,"character":3},"arguments":[{"__symbolic":"reference","name":"ɵb"}]}]}],"center":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":15,"character":3}}]}],"zoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":16,"character":3}}]}],"mapState":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":17,"character":3}}]}],"mapOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":18,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵc"}]}],"ngOnInit":[{"__symbolic":"method"}],"_setPlacemarks":[{"__symbolic":"method"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"angular-yandex-placemark","template":"","styles":[""]}]}],"members":{"geometry":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":8,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":6,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":16,"character":33}]}],"initMap":[{"__symbolic":"method"}],"_loadScript":[{"__symbolic":"method"}],"createMap":[{"__symbolic":"method"}],"createPlacemark":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}}},"origins":{"AngularYandexMapsModule":"./lib/angular-yandex-maps.module","ɵa":"./lib/components/yandex-map-component/yandex-map.component","ɵb":"./lib/components/yandex-placemark-component/yandex-placemark.component","ɵc":"./lib/services/yandex-map/yandex-map.service"},"importAs":"angular8-yandex-maps"}

@@ -14,6 +14,31 @@ (function (global, factory) {

this._injector = _injector;
this._map$ = new rxjs.Subject();
this._isMapInited$ = new rxjs.Subject();
this._apiKey = this._injector.get('API_KEY');
}
/**
* @return {?}
*/
YandexMapService.prototype.initMap = /**
* @return {?}
*/
function () {
var _this = this;
if (!this._isScriptInited) {
this._isScriptInited = true;
this._loadScript();
}
this._scriptYmaps.onload = (/**
* @return {?}
*/
function () {
ymaps.ready((/**
* @return {?}
*/
function () {
_this._isMapInited$.next(true);
}));
});
return this._isMapInited$;
};
/**
* @private

@@ -32,4 +57,3 @@ * @return {?}

/**
* @private
* @param {?} element
* @param {?} mapId
* @param {?} state

@@ -39,5 +63,4 @@ * @param {?} options

*/
YandexMapService.prototype._createMap = /**
* @private
* @param {?} element
YandexMapService.prototype.createMap = /**
* @param {?} mapId
* @param {?} state

@@ -47,34 +70,16 @@ * @param {?} options

*/
function (element, state, options) {
/** @type {?} */
var map = new ymaps.Map(element, state, options);
this._map$.next(map);
function (mapId, state, options) {
this._map = new ymaps.Map(mapId, state, options);
};
/**
* @param {?} element
* @param {?} state
* @param {?=} options
* @param {?} geometry
* @return {?}
*/
YandexMapService.prototype.initMap = /**
* @param {?} element
* @param {?} state
* @param {?=} options
YandexMapService.prototype.createPlacemark = /**
* @param {?} geometry
* @return {?}
*/
function (element, state, options) {
var _this = this;
this._loadScript();
this._scriptYmaps.onload = (/**
* @return {?}
*/
function () {
ymaps.ready((/**
* @return {?}
*/
function () {
_this._createMap(element, state, options);
}));
});
return this._map$;
function (geometry) {
this._map.geoObjects
.add(new ymaps.Placemark(geometry));
};

@@ -98,5 +103,36 @@ YandexMapService.decorators = [

*/
var YandexPlacemarkComponent = /** @class */ (function () {
function YandexPlacemarkComponent() {
}
/**
* @return {?}
*/
YandexPlacemarkComponent.prototype.ngOnInit = /**
* @return {?}
*/
function () { };
YandexPlacemarkComponent.decorators = [
{ type: core.Component, args: [{
selector: 'angular-yandex-placemark',
template: "",
styles: [""]
}] }
];
/** @nocollapse */
YandexPlacemarkComponent.ctorParameters = function () { return []; };
YandexPlacemarkComponent.propDecorators = {
geometry: [{ type: core.Input }]
};
return YandexPlacemarkComponent;
}());
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var YandexMapComponent = /** @class */ (function () {
function YandexMapComponent(_yandexMapService) {
this._yandexMapService = _yandexMapService;
this.mapState = {};
this.mapOptions = {};
}

@@ -110,11 +146,42 @@ /**

function () {
this._yandexMapService.initMap('map', this.mapState, this.mapOptions)
var _this = this;
/** @type {?} */
var uniqueMapId = "f" + (~~(Math.random() * 1e8)).toString(16);
this.mapState.zoom = this.zoom;
this.mapState.center = this.center;
this.mapContainer.nativeElement.setAttribute('id', uniqueMapId);
this._yandexMapService.initMap()
.pipe(operators.take(1))
.subscribe();
.subscribe((/**
* @return {?}
*/
function () {
_this._yandexMapService.createMap(uniqueMapId, _this.mapState, _this.mapOptions);
_this.placemarks.forEach((/**
* @param {?} placemark
* @return {?}
*/
function (placemark) {
_this._setPlacemarks(placemark.geometry);
}));
}));
};
/**
* @private
* @param {?} geometry
* @return {?}
*/
YandexMapComponent.prototype._setPlacemarks = /**
* @private
* @param {?} geometry
* @return {?}
*/
function (geometry) {
this._yandexMapService.createPlacemark(geometry);
};
YandexMapComponent.decorators = [
{ type: core.Component, args: [{
selector: 'angular-yandex-map',
template: "<div id=\"map\"></div>",
styles: ["#map{width:100%;height:100%}"]
template: "<div class=\"map-container\" #mapContainer></div>",
styles: [".map-container{width:100%;height:100%}"]
}] }

@@ -127,2 +194,6 @@ ];

YandexMapComponent.propDecorators = {
mapContainer: [{ type: core.ViewChild, args: ['mapContainer', { static: true },] }],
placemarks: [{ type: core.ContentChildren, args: [YandexPlacemarkComponent,] }],
center: [{ type: core.Input }],
zoom: [{ type: core.Input }],
mapState: [{ type: core.Input }],

@@ -160,3 +231,4 @@ mapOptions: [{ type: core.Input }]

declarations: [
YandexMapComponent
YandexMapComponent,
YandexPlacemarkComponent
],

@@ -167,3 +239,4 @@ imports: [

exports: [
YandexMapComponent
YandexMapComponent,
YandexPlacemarkComponent
]

@@ -177,3 +250,4 @@ },] }

exports.ɵa = YandexMapComponent;
exports.ɵb = YandexMapService;
exports.ɵb = YandexPlacemarkComponent;
exports.ɵc = YandexMapService;

@@ -180,0 +254,0 @@ Object.defineProperty(exports, '__esModule', { value: true });

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("angular8-yandex-maps",["exports","@angular/core","@angular/common","rxjs","rxjs/operators"],t):t((e=e||self)["angular8-yandex-maps"]={},e.ng.core,e.ng.common,e.rxjs,e.rxjs.operators)}(this,function(e,t,r,n,o){"use strict";var a=function(){function e(e){this._injector=e,this._map$=new n.Subject,this._apiKey=this._injector.get("API_KEY")}return e.prototype._loadScript=function(){this._scriptYmaps=document.createElement("script"),this._scriptYmaps.src="https://api-maps.yandex.ru/2.1/?apikey="+this._apiKey+"&lang=ru_RU",document.body.appendChild(this._scriptYmaps)},e.prototype._createMap=function(e,t,r){var n=new ymaps.Map(e,t,r);this._map$.next(n)},e.prototype.initMap=function(e,t,r){var n=this;return this._loadScript(),this._scriptYmaps.onload=function(){ymaps.ready(function(){n._createMap(e,t,r)})},this._map$},e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:t.Injector}]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject(t.INJECTOR))},token:e,providedIn:"root"}),e}(),i=function(){function e(e){this._yandexMapService=e}return e.prototype.ngOnInit=function(){this._yandexMapService.initMap("map",this.mapState,this.mapOptions).pipe(o.take(1)).subscribe()},e.decorators=[{type:t.Component,args:[{selector:"angular-yandex-map",template:'<div id="map"></div>',styles:["#map{width:100%;height:100%}"]}]}],e.ctorParameters=function(){return[{type:a}]},e.propDecorators={mapState:[{type:t.Input}],mapOptions:[{type:t.Input}]},e}(),p=function(){function e(){}return e.forRoot=function(t){return{ngModule:e,providers:[{provide:"API_KEY",useValue:t}]}},e.decorators=[{type:t.NgModule,args:[{declarations:[i],imports:[r.CommonModule],exports:[i]}]}],e}();e.AngularYandexMapsModule=p,e.ɵa=i,e.ɵb=a,Object.defineProperty(e,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("angular8-yandex-maps",["exports","@angular/core","@angular/common","rxjs","rxjs/operators"],e):e((t=t||self)["angular8-yandex-maps"]={},t.ng.core,t.ng.common,t.rxjs,t.rxjs.operators)}(this,function(t,e,n,r,a){"use strict";var o=function(){function t(t){this._injector=t,this._isMapInited$=new r.Subject,this._apiKey=this._injector.get("API_KEY")}return t.prototype.initMap=function(){var t=this;return this._isScriptInited||(this._isScriptInited=!0,this._loadScript()),this._scriptYmaps.onload=function(){ymaps.ready(function(){t._isMapInited$.next(!0)})},this._isMapInited$},t.prototype._loadScript=function(){this._scriptYmaps=document.createElement("script"),this._scriptYmaps.src="https://api-maps.yandex.ru/2.1/?apikey="+this._apiKey+"&lang=ru_RU",document.body.appendChild(this._scriptYmaps)},t.prototype.createMap=function(t,e,n){this._map=new ymaps.Map(t,e,n)},t.prototype.createPlacemark=function(t){this._map.geoObjects.add(new ymaps.Placemark(t))},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:e.Injector}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(e.INJECTOR))},token:t,providedIn:"root"}),t}(),i=function(){function t(){}return t.prototype.ngOnInit=function(){},t.decorators=[{type:e.Component,args:[{selector:"angular-yandex-placemark",template:"",styles:[""]}]}],t.ctorParameters=function(){return[]},t.propDecorators={geometry:[{type:e.Input}]},t}(),p=function(){function t(t){this._yandexMapService=t,this.mapState={},this.mapOptions={}}return t.prototype.ngOnInit=function(){var t=this,e="f"+(~~(1e8*Math.random())).toString(16);this.mapState.zoom=this.zoom,this.mapState.center=this.center,this.mapContainer.nativeElement.setAttribute("id",e),this._yandexMapService.initMap().pipe(a.take(1)).subscribe(function(){t._yandexMapService.createMap(e,t.mapState,t.mapOptions),t.placemarks.forEach(function(e){t._setPlacemarks(e.geometry)})})},t.prototype._setPlacemarks=function(t){this._yandexMapService.createPlacemark(t)},t.decorators=[{type:e.Component,args:[{selector:"angular-yandex-map",template:'<div class="map-container" #mapContainer></div>',styles:[".map-container{width:100%;height:100%}"]}]}],t.ctorParameters=function(){return[{type:o}]},t.propDecorators={mapContainer:[{type:e.ViewChild,args:["mapContainer",{"static":!0}]}],placemarks:[{type:e.ContentChildren,args:[i]}],center:[{type:e.Input}],zoom:[{type:e.Input}],mapState:[{type:e.Input}],mapOptions:[{type:e.Input}]},t}(),s=function(){function t(){}return t.forRoot=function(e){return{ngModule:t,providers:[{provide:"API_KEY",useValue:e}]}},t.decorators=[{type:e.NgModule,args:[{declarations:[p,i],imports:[n.CommonModule],exports:[p,i]}]}],t}();t.AngularYandexMapsModule=s,t.ɵa=p,t.ɵb=i,t.ɵc=o,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=angular8-yandex-maps.umd.min.js.map

@@ -10,3 +10,4 @@ /**

export { YandexMapComponent as ɵa } from './lib/components/yandex-map-component/yandex-map.component';
export { YandexMapService as ɵb } from './lib/services/yandex-map/yandex-map.service';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhcjgteWFuZGV4LW1hcHMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9hbmd1bGFyOC15YW5kZXgtbWFwcy8iLCJzb3VyY2VzIjpbImFuZ3VsYXI4LXlhbmRleC1tYXBzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSx3Q0FBYyxjQUFjLENBQUM7QUFFN0IsT0FBTyxFQUFDLGtCQUFrQixJQUFJLEVBQUUsRUFBQyxNQUFNLDREQUE0RCxDQUFDO0FBQ3BHLE9BQU8sRUFBQyxnQkFBZ0IsSUFBSSxFQUFFLEVBQUMsTUFBTSw4Q0FBOEMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcblxuZXhwb3J0IHtZYW5kZXhNYXBDb21wb25lbnQgYXMgybVhfSBmcm9tICcuL2xpYi9jb21wb25lbnRzL3lhbmRleC1tYXAtY29tcG9uZW50L3lhbmRleC1tYXAuY29tcG9uZW50JztcbmV4cG9ydCB7WWFuZGV4TWFwU2VydmljZSBhcyDJtWJ9IGZyb20gJy4vbGliL3NlcnZpY2VzL3lhbmRleC1tYXAveWFuZGV4LW1hcC5zZXJ2aWNlJzsiXX0=
export { YandexPlacemarkComponent as ɵb } from './lib/components/yandex-placemark-component/yandex-placemark.component';
export { YandexMapService as ɵc } from './lib/services/yandex-map/yandex-map.service';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhcjgteWFuZGV4LW1hcHMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9hbmd1bGFyOC15YW5kZXgtbWFwcy8iLCJzb3VyY2VzIjpbImFuZ3VsYXI4LXlhbmRleC1tYXBzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSx3Q0FBYyxjQUFjLENBQUM7QUFFN0IsT0FBTyxFQUFDLGtCQUFrQixJQUFJLEVBQUUsRUFBQyxNQUFNLDREQUE0RCxDQUFDO0FBQ3BHLE9BQU8sRUFBQyx3QkFBd0IsSUFBSSxFQUFFLEVBQUMsTUFBTSx3RUFBd0UsQ0FBQztBQUN0SCxPQUFPLEVBQUMsZ0JBQWdCLElBQUksRUFBRSxFQUFDLE1BQU0sOENBQThDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG5cbmV4cG9ydCB7WWFuZGV4TWFwQ29tcG9uZW50IGFzIMm1YX0gZnJvbSAnLi9saWIvY29tcG9uZW50cy95YW5kZXgtbWFwLWNvbXBvbmVudC95YW5kZXgtbWFwLmNvbXBvbmVudCc7XG5leHBvcnQge1lhbmRleFBsYWNlbWFya0NvbXBvbmVudCBhcyDJtWJ9IGZyb20gJy4vbGliL2NvbXBvbmVudHMveWFuZGV4LXBsYWNlbWFyay1jb21wb25lbnQveWFuZGV4LXBsYWNlbWFyay5jb21wb25lbnQnO1xuZXhwb3J0IHtZYW5kZXhNYXBTZXJ2aWNlIGFzIMm1Y30gZnJvbSAnLi9saWIvc2VydmljZXMveWFuZGV4LW1hcC95YW5kZXgtbWFwLnNlcnZpY2UnOyJdfQ==

@@ -8,2 +8,3 @@ /**

import { YandexMapComponent } from './components/yandex-map-component/yandex-map.component';
import { YandexPlacemarkComponent } from './components/yandex-placemark-component/yandex-placemark.component';
export class AngularYandexMapsModule {

@@ -26,3 +27,4 @@ /**

declarations: [
YandexMapComponent
YandexMapComponent,
YandexPlacemarkComponent
],

@@ -33,6 +35,7 @@ imports: [

exports: [
YandexMapComponent
YandexMapComponent,
YandexPlacemarkComponent
]
},] }
];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhci15YW5kZXgtbWFwcy5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9hbmd1bGFyOC15YW5kZXgtbWFwcy8iLCJzb3VyY2VzIjpbImxpYi9hbmd1bGFyLXlhbmRleC1tYXBzLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sd0RBQXdELENBQUM7QUFjNUYsTUFBTSxPQUFPLHVCQUF1Qjs7Ozs7SUFDbEMsTUFBTSxDQUFDLE9BQU8sQ0FBQyxNQUFjO1FBQzNCLE9BQU87WUFDTCxRQUFRLEVBQUUsdUJBQXVCO1lBQ2pDLFNBQVMsRUFBRTtnQkFDVCxFQUFFLE9BQU8sRUFBRSxTQUFTLEVBQUUsUUFBUSxFQUFFLE1BQU0sRUFBRTthQUN6QztTQUNGLENBQUM7SUFDSixDQUFDOzs7WUFuQkYsUUFBUSxTQUFDO2dCQUNSLFlBQVksRUFBRTtvQkFDWixrQkFBa0I7aUJBQ25CO2dCQUNELE9BQU8sRUFBRTtvQkFDUCxZQUFZO2lCQUNiO2dCQUNELE9BQU8sRUFBRTtvQkFDUCxrQkFBa0I7aUJBQ25CO2FBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xyXG5pbXBvcnQgeyBDb21tb25Nb2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pbGVyL3NyYy9jb3JlJztcclxuaW1wb3J0IHsgWWFuZGV4UGxhY2VtYXJrQ29tcG9uZW50IH0gZnJvbSAnLi9jb21wb25lbnRzL3lhbmRleC1wbGFjZW1hcmstY29tcG9uZW50L3lhbmRleC1wbGFjZW1hcmsuY29tcG9uZW50JztcclxuXHJcbkBOZ01vZHVsZSh7XHJcbiAgZGVjbGFyYXRpb25zOiBbXHJcbiAgICBZYW5kZXhNYXBDb21wb25lbnQsXHJcbiAgICBZYW5kZXhQbGFjZW1hcmtDb21wb25lbnRcclxuICBdLFxyXG4gIGltcG9ydHM6IFtcclxuICAgIENvbW1vbk1vZHVsZVxyXG4gIF0sXHJcbiAgZXhwb3J0czogW1xyXG4gICAgWWFuZGV4TWFwQ29tcG9uZW50LFxyXG4gICAgWWFuZGV4UGxhY2VtYXJrQ29tcG9uZW50XHJcbiAgXVxyXG59KVxyXG5leHBvcnQgY2xhc3MgQW5ndWxhcllhbmRleE1hcHNNb2R1bGUge1xyXG4gIHN0YXRpYyBmb3JSb290KGFwaUtleTogc3RyaW5nKTogTW9kdWxlV2l0aFByb3ZpZGVycyB7XHJcbiAgICByZXR1cm4ge1xyXG4gICAgICBuZ01vZHVsZTogQW5ndWxhcllhbmRleE1hcHNNb2R1bGUsXHJcbiAgICAgIHByb3ZpZGVyczogW1xyXG4gICAgICAgIHsgcHJvdmlkZTogJ0FQSV9LRVknLCB1c2VWYWx1ZTogYXBpS2V5IH1cclxuICAgICAgXVxyXG4gICAgfTtcclxuICB9XHJcbn1cclxuIl19

@@ -5,5 +5,6 @@ /**

*/
import { Component, Input } from '@angular/core';
import { Component, Input, ViewChild, ElementRef, ContentChildren, QueryList } from '@angular/core';
import { YandexMapService } from '../../services/yandex-map/yandex-map.service';
import { take } from 'rxjs/operators';
import { YandexPlacemarkComponent } from '../yandex-placemark-component/yandex-placemark.component';
export class YandexMapComponent {

@@ -15,2 +16,4 @@ /**

this._yandexMapService = _yandexMapService;
this.mapState = {};
this.mapOptions = {};
}

@@ -21,6 +24,31 @@ /**

ngOnInit() {
this._yandexMapService.initMap('map', this.mapState, this.mapOptions)
/** @type {?} */
const uniqueMapId = `f${(~~(Math.random() * 1e8)).toString(16)}`;
this.mapState.zoom = this.zoom;
this.mapState.center = this.center;
this.mapContainer.nativeElement.setAttribute('id', uniqueMapId);
this._yandexMapService.initMap()
.pipe(take(1))
.subscribe();
.subscribe((/**
* @return {?}
*/
() => {
this._yandexMapService.createMap(uniqueMapId, this.mapState, this.mapOptions);
this.placemarks.forEach((/**
* @param {?} placemark
* @return {?}
*/
(placemark) => {
this._setPlacemarks(placemark.geometry);
}));
}));
}
/**
* @private
* @param {?} geometry
* @return {?}
*/
_setPlacemarks(geometry) {
this._yandexMapService.createPlacemark(geometry);
}
}

@@ -30,4 +58,4 @@ YandexMapComponent.decorators = [

selector: 'angular-yandex-map',
template: "<div id=\"map\"></div>",
styles: ["#map{width:100%;height:100%}"]
template: "<div class=\"map-container\" #mapContainer></div>",
styles: [".map-container{width:100%;height:100%}"]
}] }

@@ -40,2 +68,6 @@ ];

YandexMapComponent.propDecorators = {
mapContainer: [{ type: ViewChild, args: ['mapContainer', { static: true },] }],
placemarks: [{ type: ContentChildren, args: [YandexPlacemarkComponent,] }],
center: [{ type: Input }],
zoom: [{ type: Input }],
mapState: [{ type: Input }],

@@ -46,2 +78,10 @@ mapOptions: [{ type: Input }]

/** @type {?} */
YandexMapComponent.prototype.mapContainer;
/** @type {?} */
YandexMapComponent.prototype.placemarks;
/** @type {?} */
YandexMapComponent.prototype.center;
/** @type {?} */
YandexMapComponent.prototype.zoom;
/** @type {?} */
YandexMapComponent.prototype.mapState;

@@ -56,2 +96,2 @@ /** @type {?} */

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieWFuZGV4LW1hcC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9hbmd1bGFyOC15YW5kZXgtbWFwcy8iLCJzb3VyY2VzIjpbImx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YWNlbWFyay5nZW9tZXRyeSk7XHJcbiAgICAgICAgfSk7XHJcbiAgICAgIH0pO1xyXG4gIH1cclxuXHJcbiAgcHJpdmF0ZSBfc2V0UGxhY2VtYXJrcyhnZW9tZXRyeTogQXJyYXk8bnVtYmVyPik6IHZvaWQge1xyXG4gICAgdGhpcy5feWFuZGV4TWFwU2VydmljZS5jcmVhdGVQbGFjZW1hcmsoZ2VvbWV0cnkpO1xyXG4gIH1cclxufVxyXG4iXX0=

@@ -14,6 +14,27 @@ /**

this._injector = _injector;
this._map$ = new Subject();
this._isMapInited$ = new Subject();
this._apiKey = this._injector.get('API_KEY');
}
/**
* @return {?}
*/
initMap() {
if (!this._isScriptInited) {
this._isScriptInited = true;
this._loadScript();
}
this._scriptYmaps.onload = (/**
* @return {?}
*/
() => {
ymaps.ready((/**
* @return {?}
*/
() => {
this._isMapInited$.next(true);
}));
});
return this._isMapInited$;
}
/**
* @private

@@ -28,4 +49,3 @@ * @return {?}

/**
* @private
* @param {?} element
* @param {?} mapId
* @param {?} state

@@ -35,27 +55,12 @@ * @param {?} options

*/
_createMap(element, state, options) {
/** @type {?} */
const map = new ymaps.Map(element, state, options);
this._map$.next(map);
createMap(mapId, state, options) {
this._map = new ymaps.Map(mapId, state, options);
}
/**
* @param {?} element
* @param {?} state
* @param {?=} options
* @param {?} geometry
* @return {?}
*/
initMap(element, state, options) {
this._loadScript();
this._scriptYmaps.onload = (/**
* @return {?}
*/
() => {
ymaps.ready((/**
* @return {?}
*/
() => {
this._createMap(element, state, options);
}));
});
return this._map$;
createPlacemark(geometry) {
this._map.geoObjects
.add(new ymaps.Placemark(geometry));
}

@@ -78,3 +83,3 @@ }

*/
YandexMapService.prototype._map$;
YandexMapService.prototype._isMapInited$;
/**

@@ -94,4 +99,14 @@ * @type {?}

*/
YandexMapService.prototype._isScriptInited;
/**
* @type {?}
* @private
*/
YandexMapService.prototype._map;
/**
* @type {?}
* @private
*/
YandexMapService.prototype._injector;
}
//# sourceMappingURL=data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odGhpcy5fc2NyaXB0WW1hcHMpO1xyXG4gIH1cclxuXHJcbiAgcHVibGljIGNyZWF0ZU1hcChtYXBJZDogc3RyaW5nLCBzdGF0ZTogWWFuZGV4TWFwTW9kdWxlLklZYW5kZXhNYXBTdGF0ZSwgb3B0aW9uczogWWFuZGV4TWFwTW9kdWxlLklZYW5kZXhNYXBPcHRpb25zKTogdm9pZCB7XHJcbiAgICB0aGlzLl9tYXAgPSBuZXcgeW1hcHMuTWFwKG1hcElkLCBzdGF0ZSwgb3B0aW9ucyk7XHJcbiAgfVxyXG5cclxuICBwdWJsaWMgY3JlYXRlUGxhY2VtYXJrKGdlb21ldHJ5OiBBcnJheTxudW1iZXI+KTogdm9pZCB7XHJcbiAgICB0aGlzLl9tYXAuZ2VvT2JqZWN0c1xyXG4gICAgICAuYWRkKG5ldyB5bWFwcy5QbGFjZW1hcmsoZ2VvbWV0cnkpKTtcclxuICB9XHJcbn1cclxuIl19

@@ -14,3 +14,7 @@ /**

/**
* @param {?} element
* @return {?}
*/
IYandexMapService.prototype.initMap = function () { };
/**
* @param {?} mapId
* @param {?} state

@@ -20,3 +24,8 @@ * @param {?} options

*/
IYandexMapService.prototype.initMap = function (element, state, options) { };
IYandexMapService.prototype.createMap = function (mapId, state, options) { };
/**
* @param {?} geometry
* @return {?}
*/
IYandexMapService.prototype.createPlacemark = function (geometry) { };
}

@@ -190,2 +199,2 @@ /**

})(YandexMapModule || (YandexMapModule = {}));
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieWFuZGV4LW1hcC50eXBlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vYW5ndWxhcjgteWFuZGV4LW1hcHMvIiwic291cmNlcyI6WyJsaWIvdHlwZXMveWFuZGV4LW1hcC50eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFFQSxNQUFNLEtBQVcsZUFBZSxDQTZFL0I7QUE3RUQsV0FBaUIsZUFBZTs7O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y9CLDREQUEwQzs7UUFDMUMsZ0RBQThCOztRQUM5Qiw2REFBMkM7O0FBRS9DLENBQUMsRUE3RWdCLGVBQWUsS0FBZixlQUFlLFFBNkUvQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFN1YmplY3QgfSBmcm9tICdyeGpzJztcclxuXHJcbmV4cG9ydCBuYW1lc3BhY2UgWWFuZGV4TWFwTW9kdWxlIHtcclxuICBleHBvcnQgaW50ZXJmYWNlIElZYW5kZXhNYXBTZXJ2aWNlIHtcclxuICAgIGluaXRNYXAoZWxlbWVudDogc3RyaW5nLCBzdGF0ZTogSVlhbmRleE1hcFN0YXRlLCBvcHRpb25zOiBJWWFuZGV4TWFwT3B0aW9ucyk6IFN1YmplY3Q8YW55PjtcclxuICB9XHJcblxyXG4gIGV4cG9ydCBpbnRlcmZhY2UgSVlhbmRleE1hcCB7XHJcbiAgICBhY3Rpb246IGFueTtcclxuICAgIGJhbGxvb246IGFueTtcclxuICAgIGJlaGF2aW9yczogYW55O1xyXG4gICAgY29udGFpbmVyOiBhbnk7XHJcbiAgICBjb250cm9sczogYW55O1xyXG4gICAgY29udmVydGVyOiBhbnk7XHJcbiAgICBjb3B5cmlnaHRzOiBhbnk7XHJcbiAgICBjdXJzb3JzOiBhbnk7XHJcbiAgICBldmVudHM6IGFueTtcclxuICAgIGdlb09iamVjdHM6IGFueTtcclxuICAgIGhpbnQ6IGFueTtcclxuICAgIGxheWVyczogYW55O1xyXG4gICAgbWFyZ2luOiBhbnk7XHJcbiAgICBvcHRpb25zOiBhbnk7XHJcbiAgICBwYW5lczogYW55O1xyXG4gICAgem9vbVJhbmdlOiBhbnk7XHJcblxyXG4gICAgZGVzdHJveSgpOiB2b2lkO1xyXG5cclxuICAgIGdldEJvdW5kcyhvcHRpb25zPzogYW55KTogbnVtYmVyW11bXTtcclxuXHJcbiAgICBnZXRDZW50ZXIob3B0aW9ucz86IGFueSk6IG51bWJlcltdO1xyXG5cclxuICAgIGdldEdsb2Jh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/OiAneWFuZGV4I21hcCcgfCAneWFuZGV4I3NhdGVsbGl0ZScgfCAneWFuZGV4I2h5YnJpZCc7XHJcbiAgICB6b29tPzogbnVtYmVyO1xyXG4gIH1cclxuXHJcbiAgZXhwb3J0IGludGVyZmFjZSBJWWFuZGV4TWFwT3B0aW9ucyB7XHJcbiAgICBhdXRvRml0VG9WaWV3cG9ydD86ICdub25lJyB8ICdpZk51bGwnIHwgJ2Fsd2F5cyc7XHJcbiAgICBhdm9pZEZyYWN0aW9uYWxab29tPzogYm9vbGVhbjtcclxuICAgIGV4aXRGdWxsc2NyZWVuQnlFc2M/OiBib29sZWFuO1xyXG4gICAgZnVsbHNjcmVlblpJbmRleD86IG51bWJlcjtcclxuICAgIG1hcEF1dG9Gb2N1cz86IGJvb2xlYW47XHJcbiAgICBtYXhBbmltYXRpb25ab29tRGlmZmVyZW5jZT86IG51bWJlcjtcclxuICAgIG1heFpvb20/OiBudW1iZXI7XHJcbiAgICBtaW5ab29tPzogbnVtYmVyO1xyXG4gICAgbmF0aXZlRnVsbHNjcmVlbj86IGJvb2xlYW47XHJcbiAgICBwcm9qZWN0aW9uPzogYW55O1xyXG4gICAgcmVzdHJpY3RNYXBBcmVhPzogYm9vbGVhbjtcclxuICAgIHN1cHByZXNzTWFwT3BlbkJsb2NrPzogYm9vbGVhbjtcclxuICAgIHN1cHByZXNzT2Jzb2xldGVCcm93c2VyTm90aWZpZXI/OiBib29sZWFuO1xyXG4gICAgeWFuZGV4TWFwQXV0b1N3aXRjaD86IGJvb2xlYW47XHJcbiAgICB5YW5kZXhNYXBEaXNhYmxlUG9pSW50ZXJhY3Rpdml0eT86IGJvb2xlYW47XHJcbiAgfVxyXG59XHJcbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieWFuZGV4LW1hcC50eXBlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vYW5ndWxhcjgteWFuZGV4LW1hcHMvIiwic291cmNlcyI6WyJs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mplY3RzOiBhbnk7XHJcbiAgICBoaW50OiBhbnk7XHJcbiAgICBsYXllcnM6IGFueTtcclxuICAgIG1hcmdpbjogYW55O1xyXG4gICAgb3B0aW9uczogYW55O1xyXG4gICAgcGFuZXM6IGFueTtcclxuICAgIHpvb21SYW5nZTogYW55O1xyXG5cclxuICAgIGRlc3Ryb3koKTogdm9pZDtcclxuXHJcbiAgICBnZXRCb3VuZHMob3B0aW9ucz86IGFueSk6IG51bWJlcltdW107XHJcblxyXG4gICAgZ2V0Q2VudGVyKG9wdGlvbnM/OiBhbnkpOiBudW1iZXJbXTtcclxuXHJcbiAgICBnZXRHbG9iYWxQaXhlbENlbnRlcihvcHRpb25zPzogYW55KTogbnVtYmVyW107XHJcblxyXG4gICAgZ2V0UGFub3JhbWFNYW5hZ2VyKCk6IFByb21pc2U8YW55PjtcclxuXHJcbiAgICBnZXRUeXBlKCk6IHN0cmluZyB8IGFueTtcclxuXHJcbiAgICBnZXRab29tKCk6IG51bWJlcjtcclxuXHJcbiAgICBwYW5UbyhjZW50ZXI6IG51bWJlcltdIHwgb2JqZWN0W10sIG9wdGlvbnM/OiBhbnkpOiBQcm9taXNlPHZvaWQ+O1xyXG5cclxuICAgIHNldEJvdW5kcyhib3VuZHM6IG51bWJlcltdW10sIG9wdGlvbnM/OiBhbnkpOiBQcm9taXNlPHZvaWQ+O1xyXG5cclxuICAgIHNldENlbnRlcihjZW50ZXI6IG51bWJlcltdLCB6b29tPzogbnVtYmVyLCBvcHRpb25zPzogYW55KTogUHJvbWlzZTx2b2lkPjtcclxuXHJcbiAgICBzZXRHbG9iYWxQaXhlbENlbnRlcihnbG9iYWxQaXhlbENlbnRlcjogbnVtYmVyW10sIHpvb20/OiBudW1iZXIsIG9wdGlvbnM/OiBhbnkpOiBQcm9taXNlPHZvaWQ+O1xyXG5cclxuICAgIHNldFR5cGUodHlwZTogc3RyaW5nIHwgYW55LCBvcHRpb25zPzogYW55KTogUHJvbWlzZTx2b2lkPjtcclxuXHJc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AgICBzdXBwcmVzc09ic29sZXRlQnJvd3Nlck5vdGlmaWVyPzogYm9vbGVhbjtcclxuICAgIHlhbmRleE1hcEF1dG9Td2l0Y2g/OiBib29sZWFuO1xyXG4gICAgeWFuZGV4TWFwRGlzYWJsZVBvaUludGVyYWN0aXZpdHk/OiBib29sZWFuO1xyXG4gIH1cclxufVxyXG4iXX0=

@@ -9,2 +9,2 @@ /**

export { AngularYandexMapsModule } from './lib/angular-yandex-maps.module';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2FuZ3VsYXI4LXlhbmRleC1tYXBzLyIsInNvdXJjZXMiOlsicHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBS0Esd0NBQWMsa0NBQWtDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIGFuZ3VsYXI4LXlhbmRleC1tYXBzXG4gKi9cblxuZXhwb3J0IHsgWWFuZGV4TWFwTW9kdWxlIH0gZnJvbSAnLi9saWIvdHlwZXMveWFuZGV4LW1hcC50eXBlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2FuZ3VsYXIteWFuZGV4LW1hcHMubW9kdWxlJztcbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2FuZ3VsYXI4LXlhbmRleC1tYXBzLyIsInNvdXJjZXMiOlsicHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBS0Esd0NBQWMsa0NBQWtDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxyXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgYW5ndWxhcjgteWFuZGV4LW1hcHNcclxuICovXHJcblxyXG5leHBvcnQgeyBZYW5kZXhNYXBNb2R1bGUgfSBmcm9tICcuL2xpYi90eXBlcy95YW5kZXgtbWFwLnR5cGUnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9hbmd1bGFyLXlhbmRleC1tYXBzLm1vZHVsZSc7XHJcbiJdfQ==

@@ -10,3 +10,4 @@ /**

export { YandexMapComponent as ɵa } from './lib/components/yandex-map-component/yandex-map.component';
export { YandexMapService as ɵb } from './lib/services/yandex-map/yandex-map.service';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhcjgteWFuZGV4LW1hcHMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9hbmd1bGFyOC15YW5kZXgtbWFwcy8iLCJzb3VyY2VzIjpbImFuZ3VsYXI4LXlhbmRleC1tYXBzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSx3Q0FBYyxjQUFjLENBQUM7QUFFN0IsT0FBTyxFQUFDLGtCQUFrQixJQUFJLEVBQUUsRUFBQyxNQUFNLDREQUE0RCxDQUFDO0FBQ3BHLE9BQU8sRUFBQyxnQkFBZ0IsSUFBSSxFQUFFLEVBQUMsTUFBTSw4Q0FBOEMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcblxuZXhwb3J0IHtZYW5kZXhNYXBDb21wb25lbnQgYXMgybVhfSBmcm9tICcuL2xpYi9jb21wb25lbnRzL3lhbmRleC1tYXAtY29tcG9uZW50L3lhbmRleC1tYXAuY29tcG9uZW50JztcbmV4cG9ydCB7WWFuZGV4TWFwU2VydmljZSBhcyDJtWJ9IGZyb20gJy4vbGliL3NlcnZpY2VzL3lhbmRleC1tYXAveWFuZGV4LW1hcC5zZXJ2aWNlJzsiXX0=
export { YandexPlacemarkComponent as ɵb } from './lib/components/yandex-placemark-component/yandex-placemark.component';
export { YandexMapService as ɵc } from './lib/services/yandex-map/yandex-map.service';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhcjgteWFuZGV4LW1hcHMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9hbmd1bGFyOC15YW5kZXgtbWFwcy8iLCJzb3VyY2VzIjpbImFuZ3VsYXI4LXlhbmRleC1tYXBzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSx3Q0FBYyxjQUFjLENBQUM7QUFFN0IsT0FBTyxFQUFDLGtCQUFrQixJQUFJLEVBQUUsRUFBQyxNQUFNLDREQUE0RCxDQUFDO0FBQ3BHLE9BQU8sRUFBQyx3QkFBd0IsSUFBSSxFQUFFLEVBQUMsTUFBTSx3RUFBd0UsQ0FBQztBQUN0SCxPQUFPLEVBQUMsZ0JBQWdCLElBQUksRUFBRSxFQUFDLE1BQU0sOENBQThDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG5cbmV4cG9ydCB7WWFuZGV4TWFwQ29tcG9uZW50IGFzIMm1YX0gZnJvbSAnLi9saWIvY29tcG9uZW50cy95YW5kZXgtbWFwLWNvbXBvbmVudC95YW5kZXgtbWFwLmNvbXBvbmVudCc7XG5leHBvcnQge1lhbmRleFBsYWNlbWFya0NvbXBvbmVudCBhcyDJtWJ9IGZyb20gJy4vbGliL2NvbXBvbmVudHMveWFuZGV4LXBsYWNlbWFyay1jb21wb25lbnQveWFuZGV4LXBsYWNlbWFyay5jb21wb25lbnQnO1xuZXhwb3J0IHtZYW5kZXhNYXBTZXJ2aWNlIGFzIMm1Y30gZnJvbSAnLi9saWIvc2VydmljZXMveWFuZGV4LW1hcC95YW5kZXgtbWFwLnNlcnZpY2UnOyJdfQ==

@@ -8,2 +8,3 @@ /**

import { YandexMapComponent } from './components/yandex-map-component/yandex-map.component';
import { YandexPlacemarkComponent } from './components/yandex-placemark-component/yandex-placemark.component';
var AngularYandexMapsModule = /** @class */ (function () {

@@ -31,3 +32,4 @@ function AngularYandexMapsModule() {

declarations: [
YandexMapComponent
YandexMapComponent,
YandexPlacemarkComponent
],

@@ -38,3 +40,4 @@ imports: [

exports: [
YandexMapComponent
YandexMapComponent,
YandexPlacemarkComponent
]

@@ -46,2 +49,2 @@ },] }

export { AngularYandexMapsModule };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhci15YW5kZXgtbWFwcy5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9hbmd1bGFyOC15YW5kZXgtbWFwcy8iLCJzb3VyY2VzIjpbImxpYi9hbmd1bGFyLXlhbmRleC1tYXBzLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sd0RBQXdELENBQUM7QUFHNUY7SUFBQTtJQW9CQSxDQUFDOzs7OztJQVJRLCtCQUFPOzs7O0lBQWQsVUFBZSxNQUFjO1FBQzNCLE9BQU87WUFDTCxRQUFRLEVBQUUsdUJBQXVCO1lBQ2pDLFNBQVMsRUFBRTtnQkFDVCxFQUFFLE9BQU8sRUFBRSxTQUFTLEVBQUUsUUFBUSxFQUFFLE1BQU0sRUFBRTthQUN6QztTQUNGLENBQUM7SUFDSixDQUFDOztnQkFuQkYsUUFBUSxTQUFDO29CQUN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G4gICAgICAgIHsgcHJvdmlkZTogJ0FQSV9LRVknLCB1c2VWYWx1ZTogYXBpS2V5IH1cclxuICAgICAgXVxyXG4gICAgfTtcclxuICB9XHJcbn1cclxuIl19

@@ -5,8 +5,11 @@ /**

*/
import { Component, Input } from '@angular/core';
import { Component, Input, ViewChild, ElementRef, ContentChildren, QueryList } from '@angular/core';
import { YandexMapService } from '../../services/yandex-map/yandex-map.service';
import { take } from 'rxjs/operators';
import { YandexPlacemarkComponent } from '../yandex-placemark-component/yandex-placemark.component';
var YandexMapComponent = /** @class */ (function () {
function YandexMapComponent(_yandexMapService) {
this._yandexMapService = _yandexMapService;
this.mapState = {};
this.mapOptions = {};
}

@@ -20,11 +23,42 @@ /**

function () {
this._yandexMapService.initMap('map', this.mapState, this.mapOptions)
var _this = this;
/** @type {?} */
var uniqueMapId = "f" + (~~(Math.random() * 1e8)).toString(16);
this.mapState.zoom = this.zoom;
this.mapState.center = this.center;
this.mapContainer.nativeElement.setAttribute('id', uniqueMapId);
this._yandexMapService.initMap()
.pipe(take(1))
.subscribe();
.subscribe((/**
* @return {?}
*/
function () {
_this._yandexMapService.createMap(uniqueMapId, _this.mapState, _this.mapOptions);
_this.placemarks.forEach((/**
* @param {?} placemark
* @return {?}
*/
function (placemark) {
_this._setPlacemarks(placemark.geometry);
}));
}));
};
/**
* @private
* @param {?} geometry
* @return {?}
*/
YandexMapComponent.prototype._setPlacemarks = /**
* @private
* @param {?} geometry
* @return {?}
*/
function (geometry) {
this._yandexMapService.createPlacemark(geometry);
};
YandexMapComponent.decorators = [
{ type: Component, args: [{
selector: 'angular-yandex-map',
template: "<div id=\"map\"></div>",
styles: ["#map{width:100%;height:100%}"]
template: "<div class=\"map-container\" #mapContainer></div>",
styles: [".map-container{width:100%;height:100%}"]
}] }

@@ -37,2 +71,6 @@ ];

YandexMapComponent.propDecorators = {
mapContainer: [{ type: ViewChild, args: ['mapContainer', { static: true },] }],
placemarks: [{ type: ContentChildren, args: [YandexPlacemarkComponent,] }],
center: [{ type: Input }],
zoom: [{ type: Input }],
mapState: [{ type: Input }],

@@ -46,2 +84,10 @@ mapOptions: [{ type: Input }]

/** @type {?} */
YandexMapComponent.prototype.mapContainer;
/** @type {?} */
YandexMapComponent.prototype.placemarks;
/** @type {?} */
YandexMapComponent.prototype.center;
/** @type {?} */
YandexMapComponent.prototype.zoom;
/** @type {?} */
YandexMapComponent.prototype.mapState;

@@ -56,2 +102,2 @@ /** @type {?} */

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieWFuZGV4LW1hcC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9hbmd1bGFyOC15YW5kZXgtbWFwcy8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL3lhbmRleC1tYXAtY29tcG9uZW50L3lhbmRleC1tYXAuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6RCxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSw4Q0FBOEMsQ0FBQztBQUNoRixPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFHdEM7SUFTRSw0QkFBb0IsaUJBQW1DO1FBQW5DLHNCQUFpQixHQUFqQixpQkFBaUIsQ0FBa0I7SUFBSSxDQUFDOzs7O0lBRXJELHFDQUFROzs7SUFBZjtRQUNFLElBQUksQ0FBQyxpQkFBaUIsQ0FBQyxPQUFPLENBQUMsS0FBSyxFQUFFLElBQUksQ0FBQyxRQUFRLEVBQUUsSUFBSSxDQUFDLFVBQVUsQ0FBQzthQUNsRSxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDO2FBQ2IsU0FBUyxFQUFFLENBQUM7SUFDakIsQ0FBQzs7Z0JBZkYsU0FBUy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JcbiAgICB0aGlzLm1hcENvbnRhaW5lci5uYXRpdmVFbGVtZW50LnNldEF0dHJpYnV0ZSgnaWQnLCB1bmlxdWVNYXBJZCk7XHJcbiAgICB0aGlzLl95YW5kZXhNYXBTZXJ2aWNlLmluaXRNYXAoKVxyXG4gICAgICAucGlwZSh0YWtlKDEpKVxyXG4gICAgICAuc3Vic2NyaWJlKCgpID0+IHtcclxuICAgICAgICB0aGlzLl95YW5kZXhNYXBTZXJ2aWNlLmNyZWF0ZU1hcCh1bmlxdWVNYXBJZCwgdGhpcy5tYXBTdGF0ZSwgdGhpcy5tYXBPcHRpb25zKTtcclxuXHJcbiAgICAgICAgdGhpcy5wbGFjZW1hcmtzLmZvckVhY2goKHBsYWNlbWFyaykgPT4ge1xyXG4gICAgICAgICAgdGhpcy5fc2V0UGxhY2VtYXJrcyhwbGFjZW1hcmsuZ2VvbWV0cnkpO1xyXG4gICAgICAgIH0pO1xyXG4gICAgICB9KTtcclxuICB9XHJcblxyXG4gIHByaXZhdGUgX3NldFBsYWNlbWFya3MoZ2VvbWV0cnk6IEFycmF5PG51bWJlcj4pOiB2b2lkIHtcclxuICAgIHRoaXMuX3lhbmRleE1hcFNlcnZpY2UuY3JlYXRlUGxhY2VtYXJrKGdlb21ldHJ5KTtcclxuICB9XHJcbn1cclxuIl19

@@ -11,6 +11,31 @@ /**

this._injector = _injector;
this._map$ = new Subject();
this._isMapInited$ = new Subject();
this._apiKey = this._injector.get('API_KEY');
}
/**
* @return {?}
*/
YandexMapService.prototype.initMap = /**
* @return {?}
*/
function () {
var _this = this;
if (!this._isScriptInited) {
this._isScriptInited = true;
this._loadScript();
}
this._scriptYmaps.onload = (/**
* @return {?}
*/
function () {
ymaps.ready((/**
* @return {?}
*/
function () {
_this._isMapInited$.next(true);
}));
});
return this._isMapInited$;
};
/**
* @private

@@ -29,4 +54,3 @@ * @return {?}

/**
* @private
* @param {?} element
* @param {?} mapId
* @param {?} state

@@ -36,5 +60,4 @@ * @param {?} options

*/
YandexMapService.prototype._createMap = /**
* @private
* @param {?} element
YandexMapService.prototype.createMap = /**
* @param {?} mapId
* @param {?} state

@@ -44,34 +67,16 @@ * @param {?} options

*/
function (element, state, options) {
/** @type {?} */
var map = new ymaps.Map(element, state, options);
this._map$.next(map);
function (mapId, state, options) {
this._map = new ymaps.Map(mapId, state, options);
};
/**
* @param {?} element
* @param {?} state
* @param {?=} options
* @param {?} geometry
* @return {?}
*/
YandexMapService.prototype.initMap = /**
* @param {?} element
* @param {?} state
* @param {?=} options
YandexMapService.prototype.createPlacemark = /**
* @param {?} geometry
* @return {?}
*/
function (element, state, options) {
var _this = this;
this._loadScript();
this._scriptYmaps.onload = (/**
* @return {?}
*/
function () {
ymaps.ready((/**
* @return {?}
*/
function () {
_this._createMap(element, state, options);
}));
});
return this._map$;
function (geometry) {
this._map.geoObjects
.add(new ymaps.Placemark(geometry));
};

@@ -96,3 +101,3 @@ YandexMapService.decorators = [

*/
YandexMapService.prototype._map$;
YandexMapService.prototype._isMapInited$;
/**

@@ -112,4 +117,14 @@ * @type {?}

*/
YandexMapService.prototype._isScriptInited;
/**
* @type {?}
* @private
*/
YandexMapService.prototype._map;
/**
* @type {?}
* @private
*/
YandexMapService.prototype._injector;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieWFuZGV4LW1hcC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vYW5ndWxhcjgteWFuZGV4LW1hcHMvIiwic291cmNlcyI6WyJsaWIvc2VydmljZXMveWFuZGV4LW1hcC95YW5kZXgtbWFwLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3JELE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxNQUFNLENBQUM7O0FBSy9CO0lBUUUsMEJBQW9CLFNBQW1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WFwcy5NYXAobWFwSWQsIHN0YXRlLCBvcHRpb25zKTtcclxuICB9XHJcblxyXG4gIHB1YmxpYyBjcmVhdGVQbGFjZW1hcmsoZ2VvbWV0cnk6IEFycmF5PG51bWJlcj4pOiB2b2lkIHtcclxuICAgIHRoaXMuX21hcC5nZW9PYmplY3RzXHJcbiAgICAgIC5hZGQobmV3IHltYXBzLlBsYWNlbWFyayhnZW9tZXRyeSkpO1xyXG4gIH1cclxufVxyXG4iXX0=

@@ -14,3 +14,7 @@ /**

/**
* @param {?} element
* @return {?}
*/
IYandexMapService.prototype.initMap = function () { };
/**
* @param {?} mapId
* @param {?} state

@@ -20,3 +24,8 @@ * @param {?} options

*/
IYandexMapService.prototype.initMap = function (element, state, options) { };
IYandexMapService.prototype.createMap = function (mapId, state, options) { };
/**
* @param {?} geometry
* @return {?}
*/
IYandexMapService.prototype.createPlacemark = function (geometry) { };
}

@@ -190,2 +199,2 @@ /**

})(YandexMapModule || (YandexMapModule = {}));
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieWFuZGV4LW1hcC50eXBlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vYW5ndWxhcjgteWFuZGV4LW1hcHMvIiwic291cmNlcyI6WyJsaWIvdHlwZXMveWFuZGV4LW1hcC50eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFFQSxNQUFNLEtBQVcsZUFBZSxDQTZFL0I7QUE3RUQsV0FBaUIsZUFBZTs7OztJQUM5QixnQ0FFQzs7Ozs7Ozs7O1FBREMsNkVBQTJGOzs7OztJQUc3Rix5QkEyQ0M7Ozs7UUExQ0MsNEJBQVk7O1FBQ1osNkJBQWE7O1FBQ2IsK0JBQWU7O1FBQ2YsK0JBQWU7O1FBQ2YsOEJBQWM7O1FBQ2QsK0JBQWU7O1FBQ2YsZ0NBQWdCOztRQUNoQiw2QkFBYTs7UUFDYiw0QkFBWTs7UUFDWixnQ0FBZ0I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NlIElZYW5kZXhNYXBTZXJ2aWNlIHtcclxuICAgIGluaXRNYXAoZWxlbWVudDogc3RyaW5nLCBzdGF0ZTogSVlhbmRleE1hcFN0YXRlLCBvcHRpb25zOiBJWWFuZGV4TWFwT3B0aW9ucyk6IFN1YmplY3Q8YW55PjtcclxuICB9XHJcblxyXG4gIGV4cG9ydCBpbnRlcmZhY2UgSVlhbmRleE1hcCB7XHJcbiAgICBhY3Rpb246IGFueTtcclxuICAgIGJhbGxvb246IGFueTtcclxuICAgIGJlaGF2aW9yczogYW55O1xyXG4gICAgY29udGFpbmVyOiBhbnk7XHJcbiAgICBjb250cm9sczogYW55O1xyXG4gICAgY29udmVydGVyOiBhbnk7XHJcbiAgICBjb3B5cmlnaHRzOiBhbnk7XHJcbiAgICBjdXJzb3JzOiBhbnk7XHJcbiAgICBldmVudHM6IGFueTtcclxuICAgIGdlb09iamVjdHM6IGFueTtcclxuICAgIGhpbnQ6IGFueTtcclxuICAgIGxheWVyczogYW55O1xyXG4gICAgbWFyZ2luOiBhbnk7XHJcbiAgICBvcHRpb25zOiBhbnk7XHJcbiAgICBwYW5lczogYW55O1xyXG4gICAgem9vbVJhbmdlOiBhbnk7XHJcblxyXG4gICAgZGVzdHJveSgpOiB2b2lkO1xyXG5cclxuICAgIGdldEJvdW5kcyhvcHRpb25zPzogYW55KTogbnVtYmVyW11bXTtcclxuXHJcbiAgICBnZXRDZW50ZXIob3B0aW9ucz86IGFueSk6IG51bWJlcltdO1xyXG5cclxuICAgIGdldEdsb2JhbFBpeGVsQ2VudGVyKG9wdGlvbnM/OiBhbnkpOiBudW1iZXJbXTtcclxuXHJcbiAgICBnZXRQYW5vcmFtYU1hbmFnZXIoKTogUHJvbWlzZTxhbnk+O1xyXG5cclxuICAgIGdldFR5cGUoKTogc3RyaW5nIHwgYW55O1xyXG5cclxuICAgIGdldFpvb20oKTogbnVtYmVyO1xyXG5cclxuICAgIHBhblRvKGNlbnRlcjogbnVtYmVyW10gfCBvYmplY3RbX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bnRyb2xzPzogc3RyaW5nW107XHJcbiAgICBtYXJnaW4/OiBudW1iZXJbXVtdIHwgbnVtYmVyW107XHJcbiAgICB0eXBlPzogJ3lhbmRleCNtYXAnIHwgJ3lhbmRleCNzYXRlbGxpdGUnIHwgJ3lhbmRleCNoeWJyaWQnO1xyXG4gICAgem9vbT86IG51bWJlcjtcclxuICB9XHJcblxyXG4gIGV4cG9ydCBpbnRlcmZhY2UgSVlhbmRleE1hcE9wdGlvbnMge1xyXG4gICAgYXV0b0ZpdFRvVmlld3BvcnQ/OiAnbm9uZScgfCAnaWZOdWxsJyB8ICdhbHdheXMnO1xyXG4gICAgYXZvaWRGcmFjdGlvbmFsWm9vbT86IGJvb2xlYW47XHJcbiAgICBleGl0RnVsbHNjcmVlbkJ5RXNjPzogYm9vbGVhbjtcclxuICAgIGZ1bGxzY3JlZW5aSW5kZXg/OiBudW1iZXI7XHJcbiAgICBtYXBBdXRvRm9jdXM/OiBib29sZWFuO1xyXG4gICAgbWF4QW5pbWF0aW9uWm9vbURpZmZlcmVuY2U/OiBudW1iZXI7XHJcbiAgICBtYXhab29tPzogbnVtYmVyO1xyXG4gICAgbWluWm9vbT86IG51bWJlcjtcclxuICAgIG5hdGl2ZUZ1bGxzY3JlZW4/OiBib29sZWFuO1xyXG4gICAgcHJvamVjdGlvbj86IGFueTtcclxuICAgIHJlc3RyaWN0TWFwQXJlYT86IGJvb2xlYW47XHJcbiAgICBzdXBwcmVzc01hcE9wZW5CbG9jaz86IGJvb2xlYW47XHJcbiAgICBzdXBwcmVzc09ic29sZXRlQnJvd3Nlck5vdGlmaWVyPzogYm9vbGVhbjtcclxuICAgIHlhbmRleE1hcEF1dG9Td2l0Y2g/OiBib29sZWFuO1xyXG4gICAgeWFuZGV4TWFwRGlzYWJsZVBvaUludGVyYWN0aXZpdHk/OiBib29sZWFuO1xyXG4gIH1cclxufVxyXG4iXX0=

@@ -9,2 +9,2 @@ /**

export { AngularYandexMapsModule } from './lib/angular-yandex-maps.module';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2FuZ3VsYXI4LXlhbmRleC1tYXBzLyIsInNvdXJjZXMiOlsicHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBS0Esd0NBQWMsa0NBQWtDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIGFuZ3VsYXI4LXlhbmRleC1tYXBzXG4gKi9cblxuZXhwb3J0IHsgWWFuZGV4TWFwTW9kdWxlIH0gZnJvbSAnLi9saWIvdHlwZXMveWFuZGV4LW1hcC50eXBlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2FuZ3VsYXIteWFuZGV4LW1hcHMubW9kdWxlJztcbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2FuZ3VsYXI4LXlhbmRleC1tYXBzLyIsInNvdXJjZXMiOlsicHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBS0Esd0NBQWMsa0NBQWtDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxyXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgYW5ndWxhcjgteWFuZGV4LW1hcHNcclxuICovXHJcblxyXG5leHBvcnQgeyBZYW5kZXhNYXBNb2R1bGUgfSBmcm9tICcuL2xpYi90eXBlcy95YW5kZXgtbWFwLnR5cGUnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9hbmd1bGFyLXlhbmRleC1tYXBzLm1vZHVsZSc7XHJcbiJdfQ==

@@ -1,2 +0,2 @@

import { Injectable, Injector, ɵɵdefineInjectable, ɵɵinject, INJECTOR, Component, Input, NgModule } from '@angular/core';
import { Injectable, Injector, ɵɵdefineInjectable, ɵɵinject, INJECTOR, Component, Input, ViewChild, ContentChildren, NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';

@@ -16,6 +16,27 @@ import { Subject } from 'rxjs';

this._injector = _injector;
this._map$ = new Subject();
this._isMapInited$ = new Subject();
this._apiKey = this._injector.get('API_KEY');
}
/**
* @return {?}
*/
initMap() {
if (!this._isScriptInited) {
this._isScriptInited = true;
this._loadScript();
}
this._scriptYmaps.onload = (/**
* @return {?}
*/
() => {
ymaps.ready((/**
* @return {?}
*/
() => {
this._isMapInited$.next(true);
}));
});
return this._isMapInited$;
}
/**
* @private

@@ -30,4 +51,3 @@ * @return {?}

/**
* @private
* @param {?} element
* @param {?} mapId
* @param {?} state

@@ -37,27 +57,12 @@ * @param {?} options

*/
_createMap(element, state, options) {
/** @type {?} */
const map = new ymaps.Map(element, state, options);
this._map$.next(map);
createMap(mapId, state, options) {
this._map = new ymaps.Map(mapId, state, options);
}
/**
* @param {?} element
* @param {?} state
* @param {?=} options
* @param {?} geometry
* @return {?}
*/
initMap(element, state, options) {
this._loadScript();
this._scriptYmaps.onload = (/**
* @return {?}
*/
() => {
ymaps.ready((/**
* @return {?}
*/
() => {
this._createMap(element, state, options);
}));
});
return this._map$;
createPlacemark(geometry) {
this._map.geoObjects
.add(new ymaps.Placemark(geometry));
}

@@ -80,2 +85,26 @@ }

*/
class YandexPlacemarkComponent {
constructor() { }
/**
* @return {?}
*/
ngOnInit() { }
}
YandexPlacemarkComponent.decorators = [
{ type: Component, args: [{
selector: 'angular-yandex-placemark',
template: "",
styles: [""]
}] }
];
/** @nocollapse */
YandexPlacemarkComponent.ctorParameters = () => [];
YandexPlacemarkComponent.propDecorators = {
geometry: [{ type: Input }]
};
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
class YandexMapComponent {

@@ -87,2 +116,4 @@ /**

this._yandexMapService = _yandexMapService;
this.mapState = {};
this.mapOptions = {};
}

@@ -93,6 +124,31 @@ /**

ngOnInit() {
this._yandexMapService.initMap('map', this.mapState, this.mapOptions)
/** @type {?} */
const uniqueMapId = `f${(~~(Math.random() * 1e8)).toString(16)}`;
this.mapState.zoom = this.zoom;
this.mapState.center = this.center;
this.mapContainer.nativeElement.setAttribute('id', uniqueMapId);
this._yandexMapService.initMap()
.pipe(take(1))
.subscribe();
.subscribe((/**
* @return {?}
*/
() => {
this._yandexMapService.createMap(uniqueMapId, this.mapState, this.mapOptions);
this.placemarks.forEach((/**
* @param {?} placemark
* @return {?}
*/
(placemark) => {
this._setPlacemarks(placemark.geometry);
}));
}));
}
/**
* @private
* @param {?} geometry
* @return {?}
*/
_setPlacemarks(geometry) {
this._yandexMapService.createPlacemark(geometry);
}
}

@@ -102,4 +158,4 @@ YandexMapComponent.decorators = [

selector: 'angular-yandex-map',
template: "<div id=\"map\"></div>",
styles: ["#map{width:100%;height:100%}"]
template: "<div class=\"map-container\" #mapContainer></div>",
styles: [".map-container{width:100%;height:100%}"]
}] }

@@ -112,2 +168,6 @@ ];

YandexMapComponent.propDecorators = {
mapContainer: [{ type: ViewChild, args: ['mapContainer', { static: true },] }],
placemarks: [{ type: ContentChildren, args: [YandexPlacemarkComponent,] }],
center: [{ type: Input }],
zoom: [{ type: Input }],
mapState: [{ type: Input }],

@@ -138,3 +198,4 @@ mapOptions: [{ type: Input }]

declarations: [
YandexMapComponent
YandexMapComponent,
YandexPlacemarkComponent
],

@@ -145,3 +206,4 @@ imports: [

exports: [
YandexMapComponent
YandexMapComponent,
YandexPlacemarkComponent
]

@@ -151,3 +213,3 @@ },] }

export { AngularYandexMapsModule, YandexMapComponent as ɵa, YandexMapService as ɵb };
export { AngularYandexMapsModule, YandexMapComponent as ɵa, YandexPlacemarkComponent as ɵb, YandexMapService as ɵc };
//# sourceMappingURL=angular8-yandex-maps.js.map

@@ -1,2 +0,2 @@

import { Injectable, Injector, ɵɵdefineInjectable, ɵɵinject, INJECTOR, Component, Input, NgModule } from '@angular/core';
import { Injectable, Injector, ɵɵdefineInjectable, ɵɵinject, INJECTOR, Component, Input, ViewChild, ContentChildren, NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';

@@ -13,6 +13,31 @@ import { Subject } from 'rxjs';

this._injector = _injector;
this._map$ = new Subject();
this._isMapInited$ = new Subject();
this._apiKey = this._injector.get('API_KEY');
}
/**
* @return {?}
*/
YandexMapService.prototype.initMap = /**
* @return {?}
*/
function () {
var _this = this;
if (!this._isScriptInited) {
this._isScriptInited = true;
this._loadScript();
}
this._scriptYmaps.onload = (/**
* @return {?}
*/
function () {
ymaps.ready((/**
* @return {?}
*/
function () {
_this._isMapInited$.next(true);
}));
});
return this._isMapInited$;
};
/**
* @private

@@ -31,4 +56,3 @@ * @return {?}

/**
* @private
* @param {?} element
* @param {?} mapId
* @param {?} state

@@ -38,5 +62,4 @@ * @param {?} options

*/
YandexMapService.prototype._createMap = /**
* @private
* @param {?} element
YandexMapService.prototype.createMap = /**
* @param {?} mapId
* @param {?} state

@@ -46,34 +69,16 @@ * @param {?} options

*/
function (element, state, options) {
/** @type {?} */
var map = new ymaps.Map(element, state, options);
this._map$.next(map);
function (mapId, state, options) {
this._map = new ymaps.Map(mapId, state, options);
};
/**
* @param {?} element
* @param {?} state
* @param {?=} options
* @param {?} geometry
* @return {?}
*/
YandexMapService.prototype.initMap = /**
* @param {?} element
* @param {?} state
* @param {?=} options
YandexMapService.prototype.createPlacemark = /**
* @param {?} geometry
* @return {?}
*/
function (element, state, options) {
var _this = this;
this._loadScript();
this._scriptYmaps.onload = (/**
* @return {?}
*/
function () {
ymaps.ready((/**
* @return {?}
*/
function () {
_this._createMap(element, state, options);
}));
});
return this._map$;
function (geometry) {
this._map.geoObjects
.add(new ymaps.Placemark(geometry));
};

@@ -97,5 +102,36 @@ YandexMapService.decorators = [

*/
var YandexPlacemarkComponent = /** @class */ (function () {
function YandexPlacemarkComponent() {
}
/**
* @return {?}
*/
YandexPlacemarkComponent.prototype.ngOnInit = /**
* @return {?}
*/
function () { };
YandexPlacemarkComponent.decorators = [
{ type: Component, args: [{
selector: 'angular-yandex-placemark',
template: "",
styles: [""]
}] }
];
/** @nocollapse */
YandexPlacemarkComponent.ctorParameters = function () { return []; };
YandexPlacemarkComponent.propDecorators = {
geometry: [{ type: Input }]
};
return YandexPlacemarkComponent;
}());
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var YandexMapComponent = /** @class */ (function () {
function YandexMapComponent(_yandexMapService) {
this._yandexMapService = _yandexMapService;
this.mapState = {};
this.mapOptions = {};
}

@@ -109,11 +145,42 @@ /**

function () {
this._yandexMapService.initMap('map', this.mapState, this.mapOptions)
var _this = this;
/** @type {?} */
var uniqueMapId = "f" + (~~(Math.random() * 1e8)).toString(16);
this.mapState.zoom = this.zoom;
this.mapState.center = this.center;
this.mapContainer.nativeElement.setAttribute('id', uniqueMapId);
this._yandexMapService.initMap()
.pipe(take(1))
.subscribe();
.subscribe((/**
* @return {?}
*/
function () {
_this._yandexMapService.createMap(uniqueMapId, _this.mapState, _this.mapOptions);
_this.placemarks.forEach((/**
* @param {?} placemark
* @return {?}
*/
function (placemark) {
_this._setPlacemarks(placemark.geometry);
}));
}));
};
/**
* @private
* @param {?} geometry
* @return {?}
*/
YandexMapComponent.prototype._setPlacemarks = /**
* @private
* @param {?} geometry
* @return {?}
*/
function (geometry) {
this._yandexMapService.createPlacemark(geometry);
};
YandexMapComponent.decorators = [
{ type: Component, args: [{
selector: 'angular-yandex-map',
template: "<div id=\"map\"></div>",
styles: ["#map{width:100%;height:100%}"]
template: "<div class=\"map-container\" #mapContainer></div>",
styles: [".map-container{width:100%;height:100%}"]
}] }

@@ -126,2 +193,6 @@ ];

YandexMapComponent.propDecorators = {
mapContainer: [{ type: ViewChild, args: ['mapContainer', { static: true },] }],
placemarks: [{ type: ContentChildren, args: [YandexPlacemarkComponent,] }],
center: [{ type: Input }],
zoom: [{ type: Input }],
mapState: [{ type: Input }],

@@ -159,3 +230,4 @@ mapOptions: [{ type: Input }]

declarations: [
YandexMapComponent
YandexMapComponent,
YandexPlacemarkComponent
],

@@ -166,3 +238,4 @@ imports: [

exports: [
YandexMapComponent
YandexMapComponent,
YandexPlacemarkComponent
]

@@ -174,3 +247,3 @@ },] }

export { AngularYandexMapsModule, YandexMapComponent as ɵa, YandexMapService as ɵb };
export { AngularYandexMapsModule, YandexMapComponent as ɵa, YandexPlacemarkComponent as ɵb, YandexMapService as ɵc };
//# sourceMappingURL=angular8-yandex-maps.js.map

@@ -1,6 +0,11 @@

import { OnInit } from '@angular/core';
import { OnInit, ElementRef, QueryList } from '@angular/core';
import { YandexMapService } from '../../services/yandex-map/yandex-map.service';
import { YandexMapModule } from '../../types/yandex-map.type';
import { YandexPlacemarkComponent } from '../yandex-placemark-component/yandex-placemark.component';
export declare class YandexMapComponent implements OnInit {
private _yandexMapService;
mapContainer: ElementRef;
placemarks: QueryList<YandexPlacemarkComponent>;
center: Array<number>;
zoom: number;
mapState: YandexMapModule.IYandexMapState;

@@ -10,2 +15,3 @@ mapOptions: YandexMapModule.IYandexMapOptions;

ngOnInit(): void;
private _setPlacemarks;
}

@@ -6,9 +6,12 @@ import { Injector } from '@angular/core';

private _injector;
private _map$;
private _isMapInited$;
private _scriptYmaps;
private _apiKey;
private _isScriptInited;
private _map;
constructor(_injector: Injector);
initMap(): Subject<boolean>;
private _loadScript;
private _createMap;
initMap(element: string, state: YandexMapModule.IYandexMapState, options?: YandexMapModule.IYandexMapOptions): Subject<YandexMapModule.IYandexMap>;
createMap(mapId: string, state: YandexMapModule.IYandexMapState, options: YandexMapModule.IYandexMapOptions): void;
createPlacemark(geometry: Array<number>): void;
}
import { Subject } from 'rxjs';
export declare namespace YandexMapModule {
interface IYandexMapService {
initMap(element: string, state: IYandexMapState, options: IYandexMapOptions): Subject<any>;
initMap(): Subject<boolean>;
createMap(mapId: string, state: YandexMapModule.IYandexMapState, options: YandexMapModule.IYandexMapOptions): void;
createPlacemark(geometry: Array<number>): void;
}

@@ -6,0 +8,0 @@ interface IYandexMap {

{
"name": "angular8-yandex-maps",
"version": "0.1.1",
"version": "0.2.0",
"description": "Angular module for Yandex Maps",

@@ -5,0 +5,0 @@ "repository": {

@@ -0,0 +0,0 @@ # Angular8-yandex-maps

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc