angular8-yandex-maps
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -9,2 +9,3 @@ /** | ||
export { YandexPlacemarkComponent as ɵb } from './lib/components/yandex-placemark-component/yandex-placemark.component'; | ||
export { YandexMapService as ɵe } from './lib/services/yandex-map/yandex-map.service'; | ||
export { YandexSearchComponent as ɵe } from './lib/components/yandex-search-component/yandex-search.component'; | ||
export { YandexMapService as ɵf } from './lib/services/yandex-map/yandex-map.service'; |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"AngularYandexMapsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":8,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":16,"character":4}],"exports":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"}]}]}],"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":7,"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":13,"character":3},"arguments":["mapContainer",{"static":true}]}]}],"placemarks":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":14,"character":3},"arguments":[{"__symbolic":"reference","name":"ɵb"}]}]}],"multiroutes":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":15,"character":3},"arguments":[{"__symbolic":"reference","name":"ɵc"}]}]}],"geoObjects":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":16,"character":3},"arguments":[{"__symbolic":"reference","name":"ɵd"}]}]}],"center":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":18,"character":3}}]}],"zoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":19,"character":3}}]}],"mapState":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":20,"character":3}}]}],"mapOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":21,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵe"}]}],"ngOnInit":[{"__symbolic":"method"}],"_logErrors":[{"__symbolic":"method"}],"_setUniqueMapIdOfMap":[{"__symbolic":"method"}],"_createMapWithObjects":[{"__symbolic":"method"}],"_combineInputs":[{"__symbolic":"method"}],"_addObjectsOnMap":[{"__symbolic":"method"}],"_setPlacemarks":[{"__symbolic":"method"}],"_createMultiroute":[{"__symbolic":"method"}],"_createGeoObject":[{"__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}}]}],"placemarkProperties":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":9,"character":3}}]}],"placemarkOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}],"_logErrors":[{"__symbolic":"method"}]}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"angular-yandex-multiroute","template":"","styles":[""]}]}],"members":{"referencePoints":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":8,"character":3}}]}],"multirouteModel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":9,"character":3}}]}],"multirouteOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}],"_logErrors":[{"__symbolic":"method"}]}},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"angular-yandex-geoobject","template":"","styles":[""]}]}],"members":{"feature":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":8,"character":3}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":9,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}},"ɵe":{"__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"}],"createMultiroute":[{"__symbolic":"method"}],"createGeoObject":[{"__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/components/yandex-multiroute-component/yandex-multiroute.component","ɵd":"./lib/components/yandex-geoobject-component/yandex-geoobject.component","ɵe":"./lib/services/yandex-map/yandex-map.service"},"importAs":"angular8-yandex-maps"} | ||
{"__symbolic":"module","version":4,"metadata":{"AngularYandexMapsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":9,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","name":"ɵe"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":18,"character":4}],"exports":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","name":"ɵe"}]}]}],"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":8,"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":14,"character":3},"arguments":["mapContainer",{"static":true}]}]}],"placemarks":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":15,"character":3},"arguments":[{"__symbolic":"reference","name":"ɵb"}]}]}],"multiroutes":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":16,"character":3},"arguments":[{"__symbolic":"reference","name":"ɵc"}]}]}],"geoObjects":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":17,"character":3},"arguments":[{"__symbolic":"reference","name":"ɵd"}]}]}],"searchControl":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":18,"character":3},"arguments":[{"__symbolic":"reference","name":"ɵe"}]}]}],"center":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":20,"character":3}}]}],"zoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":21,"character":3}}]}],"mapState":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":22,"character":3}}]}],"mapOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":23,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵf"}]}],"ngOnInit":[{"__symbolic":"method"}],"_logErrors":[{"__symbolic":"method"}],"_setUniqueMapIdOfMap":[{"__symbolic":"method"}],"_createMapWithObjects":[{"__symbolic":"method"}],"_combineInputs":[{"__symbolic":"method"}],"_addObjectsOnMap":[{"__symbolic":"method"}],"_addPlacemark":[{"__symbolic":"method"}],"_addMultiroute":[{"__symbolic":"method"}],"_addGeoObject":[{"__symbolic":"method"}],"_addSearchControl":[{"__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}}]}],"placemarkProperties":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":9,"character":3}}]}],"placemarkOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}],"_logErrors":[{"__symbolic":"method"}]}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"angular-yandex-multiroute","template":"","styles":[""]}]}],"members":{"referencePoints":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":8,"character":3}}]}],"multirouteModel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":9,"character":3}}]}],"multirouteOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}],"_logErrors":[{"__symbolic":"method"}]}},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"angular-yandex-geoobject","template":"","styles":[""]}]}],"members":{"feature":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":8,"character":3}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":9,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}],"_logErrors":[{"__symbolic":"method"}]}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"angular-yandex-search","template":"","styles":[""]}]}],"members":{"searchRequest":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":8,"character":3}}]}],"parameters":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":9,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}},"ɵf":{"__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"}],"addPlacemark":[{"__symbolic":"method"}],"addMultiroute":[{"__symbolic":"method"}],"addGeoObject":[{"__symbolic":"method"}],"addSearchControl":[{"__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/components/yandex-multiroute-component/yandex-multiroute.component","ɵd":"./lib/components/yandex-geoobject-component/yandex-geoobject.component","ɵe":"./lib/components/yandex-search-component/yandex-search.component","ɵf":"./lib/services/yandex-map/yandex-map.service"},"importAs":"angular8-yandex-maps"} |
@@ -18,5 +18,13 @@ (function (global, factory) { | ||
/** | ||
* Init ymaps script if it's not initiated | ||
* Trigger map subject on script load | ||
*/ | ||
/** | ||
* Init ymaps script if it's not initiated | ||
* Trigger map subject on script load | ||
* @return {?} | ||
*/ | ||
YandexMapService.prototype.initMap = /** | ||
* Init ymaps script if it's not initiated | ||
* Trigger map subject on script load | ||
* @return {?} | ||
@@ -57,2 +65,9 @@ */ | ||
/** | ||
* Create new Map class instance | ||
* @param mapId | ||
* @param state | ||
* @param options | ||
*/ | ||
/** | ||
* Create new Map class instance | ||
* @param {?} mapId | ||
@@ -64,2 +79,3 @@ * @param {?} state | ||
YandexMapService.prototype.createMap = /** | ||
* Create new Map class instance | ||
* @param {?} mapId | ||
@@ -74,2 +90,6 @@ * @param {?} state | ||
/** | ||
* Add objects, controls on map | ||
*/ | ||
/** | ||
* Add objects, controls on map | ||
* @param {?} geometry | ||
@@ -80,3 +100,4 @@ * @param {?} properties | ||
*/ | ||
YandexMapService.prototype.createPlacemark = /** | ||
YandexMapService.prototype.addPlacemark = /** | ||
* Add objects, controls on map | ||
* @param {?} geometry | ||
@@ -96,3 +117,3 @@ * @param {?} properties | ||
*/ | ||
YandexMapService.prototype.createMultiroute = /** | ||
YandexMapService.prototype.addMultiroute = /** | ||
* @param {?} model | ||
@@ -111,3 +132,3 @@ * @param {?} options | ||
*/ | ||
YandexMapService.prototype.createGeoObject = /** | ||
YandexMapService.prototype.addGeoObject = /** | ||
* @param {?} feature | ||
@@ -121,2 +142,30 @@ * @param {?} options | ||
}; | ||
/** | ||
* Create new SearchControl class instance with properies | ||
* If searchRequest is provided -> force search in the current area | ||
* @param request | ||
* @param properties | ||
*/ | ||
/** | ||
* Create new SearchControl class instance with properies | ||
* If searchRequest is provided -> force search in the current area | ||
* @param {?} request | ||
* @param {?} properties | ||
* @return {?} | ||
*/ | ||
YandexMapService.prototype.addSearchControl = /** | ||
* Create new SearchControl class instance with properies | ||
* If searchRequest is provided -> force search in the current area | ||
* @param {?} request | ||
* @param {?} properties | ||
* @return {?} | ||
*/ | ||
function (request, properties) { | ||
/** @type {?} */ | ||
var searchControl = new ymaps.control.SearchControl(properties); | ||
this._map.controls | ||
.add(searchControl); | ||
if (request) | ||
searchControl.search(request); | ||
}; | ||
YandexMapService.decorators = [ | ||
@@ -141,3 +190,2 @@ { type: core.Injectable, args: [{ | ||
function YandexPlacemarkComponent() { | ||
this.geometry = []; | ||
} | ||
@@ -162,4 +210,6 @@ /** | ||
function () { | ||
if (!this.geometry.length) | ||
console.error('Placemark: geometry is required'); | ||
if (!this.geometry) { | ||
console.error('Placemark: geometry input is required.'); | ||
this.geometry = []; | ||
} | ||
}; | ||
@@ -189,3 +239,2 @@ YandexPlacemarkComponent.decorators = [ | ||
function YandexMultirouteComponent() { | ||
this.referencePoints = []; | ||
} | ||
@@ -210,4 +259,6 @@ /** | ||
function () { | ||
if (!this.referencePoints.length) | ||
console.error('Multiroute: referencePoints is required'); | ||
if (!this.referencePoints) { | ||
console.error('Multiroute: referencePoints input is required.'); | ||
this.referencePoints = []; | ||
} | ||
}; | ||
@@ -244,3 +295,19 @@ YandexMultirouteComponent.decorators = [ | ||
*/ | ||
function () { }; | ||
function () { | ||
this._logErrors(); | ||
}; | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
YandexGeoobjectComponent.prototype._logErrors = /** | ||
* @private | ||
* @return {?} | ||
*/ | ||
function () { | ||
if (!this.feature) { | ||
console.error('GeoObjects: feature input is required.'); | ||
this.feature = {}; | ||
} | ||
}; | ||
YandexGeoobjectComponent.decorators = [ | ||
@@ -266,8 +333,38 @@ { type: core.Component, args: [{ | ||
*/ | ||
var YandexSearchComponent = /** @class */ (function () { | ||
function YandexSearchComponent() { | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
YandexSearchComponent.prototype.ngOnInit = /** | ||
* @return {?} | ||
*/ | ||
function () { }; | ||
YandexSearchComponent.decorators = [ | ||
{ type: core.Component, args: [{ | ||
selector: 'angular-yandex-search', | ||
template: "", | ||
styles: [""] | ||
}] } | ||
]; | ||
/** @nocollapse */ | ||
YandexSearchComponent.ctorParameters = function () { return []; }; | ||
YandexSearchComponent.propDecorators = { | ||
searchRequest: [{ type: core.Input }], | ||
parameters: [{ type: core.Input }] | ||
}; | ||
return YandexSearchComponent; | ||
}()); | ||
/** | ||
* @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.center = []; | ||
this.zoom = 10; | ||
this.mapState = {}; | ||
this.mapOptions = {}; | ||
} | ||
@@ -294,4 +391,6 @@ /** | ||
function () { | ||
if (!this.center.length) | ||
console.error('Map: center is required'); | ||
if (!this.center) { | ||
console.error('Map: center input is required.'); | ||
this.center = []; | ||
} | ||
}; | ||
@@ -374,3 +473,3 @@ /** | ||
function (placemark) { | ||
_this._setPlacemarks(placemark); | ||
_this._addPlacemark(placemark); | ||
})); | ||
@@ -382,3 +481,3 @@ this.multiroutes.forEach((/** | ||
function (multiroute) { | ||
_this._createMultiroute(multiroute); | ||
_this._addMultiroute(multiroute); | ||
})); | ||
@@ -390,10 +489,12 @@ this.geoObjects.forEach((/** | ||
function (geoObject) { | ||
_this._createGeoObject(geoObject); | ||
_this._addGeoObject(geoObject); | ||
})); | ||
if (this.searchControl.first) | ||
this._addSearchControl(this.searchControl.first); | ||
}; | ||
/** | ||
* Add objects with params in map.geoObjects | ||
* Add objects, controls on map | ||
*/ | ||
/** | ||
* Add objects with params in map.geoObjects | ||
* Add objects, controls on map | ||
* @private | ||
@@ -403,4 +504,4 @@ * @param {?} placemark | ||
*/ | ||
YandexMapComponent.prototype._setPlacemarks = /** | ||
* Add objects with params in map.geoObjects | ||
YandexMapComponent.prototype._addPlacemark = /** | ||
* Add objects, controls on map | ||
* @private | ||
@@ -411,3 +512,3 @@ * @param {?} placemark | ||
function (placemark) { | ||
this._yandexMapService.createPlacemark(placemark.geometry, placemark.placemarkProperties, placemark.placemarkOptions); | ||
this._yandexMapService.addPlacemark(placemark.geometry, placemark.placemarkProperties, placemark.placemarkOptions); | ||
}; | ||
@@ -419,3 +520,3 @@ /** | ||
*/ | ||
YandexMapComponent.prototype._createMultiroute = /** | ||
YandexMapComponent.prototype._addMultiroute = /** | ||
* @private | ||
@@ -426,3 +527,3 @@ * @param {?} multiroute | ||
function (multiroute) { | ||
this._yandexMapService.createMultiroute(multiroute.multirouteModel, multiroute.multirouteOptions); | ||
this._yandexMapService.addMultiroute(multiroute.multirouteModel, multiroute.multirouteOptions); | ||
}; | ||
@@ -434,3 +535,3 @@ /** | ||
*/ | ||
YandexMapComponent.prototype._createGeoObject = /** | ||
YandexMapComponent.prototype._addGeoObject = /** | ||
* @private | ||
@@ -441,4 +542,17 @@ * @param {?} geoObject | ||
function (geoObject) { | ||
this._yandexMapService.createGeoObject(geoObject.feature, geoObject.options); | ||
this._yandexMapService.addGeoObject(geoObject.feature, geoObject.options); | ||
}; | ||
/** | ||
* @private | ||
* @param {?} search | ||
* @return {?} | ||
*/ | ||
YandexMapComponent.prototype._addSearchControl = /** | ||
* @private | ||
* @param {?} search | ||
* @return {?} | ||
*/ | ||
function (search) { | ||
this._yandexMapService.addSearchControl(search.searchRequest, search.parameters); | ||
}; | ||
YandexMapComponent.decorators = [ | ||
@@ -460,2 +574,3 @@ { type: core.Component, args: [{ | ||
geoObjects: [{ type: core.ContentChildren, args: [YandexGeoobjectComponent,] }], | ||
searchControl: [{ type: core.ContentChildren, args: [YandexSearchComponent,] }], | ||
center: [{ type: core.Input }], | ||
@@ -498,3 +613,4 @@ zoom: [{ type: core.Input }], | ||
YandexMultirouteComponent, | ||
YandexGeoobjectComponent | ||
YandexGeoobjectComponent, | ||
YandexSearchComponent | ||
], | ||
@@ -508,3 +624,4 @@ imports: [ | ||
YandexMultirouteComponent, | ||
YandexGeoobjectComponent | ||
YandexGeoobjectComponent, | ||
YandexSearchComponent | ||
] | ||
@@ -521,3 +638,4 @@ },] } | ||
exports.ɵd = YandexGeoobjectComponent; | ||
exports.ɵe = YandexMapService; | ||
exports.ɵe = YandexSearchComponent; | ||
exports.ɵf = YandexMapService; | ||
@@ -524,0 +642,0 @@ Object.defineProperty(exports, '__esModule', { value: true }); |
@@ -1,2 +0,2 @@ | ||
!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,r,o,n){"use strict";var i=function(){function t(t){this._injector=t,this._isMapInited$=new o.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,r){this._map=new ymaps.Map(t,e,r)},t.prototype.createPlacemark=function(t,e,r){this._map.geoObjects.add(new ymaps.Placemark(t,e,r))},t.prototype.createMultiroute=function(t,e){this._map.geoObjects.add(new ymaps.multiRouter.MultiRoute(t,e))},t.prototype.createGeoObject=function(t,e){this._map.geoObjects.add(new ymaps.GeoObject(t,e))},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}(),a=function(){function t(){this.geometry=[]}return t.prototype.ngOnInit=function(){this._logErrors()},t.prototype._logErrors=function(){this.geometry.length||console.error("Placemark: geometry is required")},t.decorators=[{type:e.Component,args:[{selector:"angular-yandex-placemark",template:"",styles:[""]}]}],t.ctorParameters=function(){return[]},t.propDecorators={geometry:[{type:e.Input}],placemarkProperties:[{type:e.Input}],placemarkOptions:[{type:e.Input}]},t}(),p=function(){function t(){this.referencePoints=[]}return t.prototype.ngOnInit=function(){this._logErrors()},t.prototype._logErrors=function(){this.referencePoints.length||console.error("Multiroute: referencePoints is required")},t.decorators=[{type:e.Component,args:[{selector:"angular-yandex-multiroute",template:"",styles:[""]}]}],t.ctorParameters=function(){return[]},t.propDecorators={referencePoints:[{type:e.Input}],multirouteModel:[{type:e.Input}],multirouteOptions:[{type:e.Input}]},t}(),s=function(){function t(){}return t.prototype.ngOnInit=function(){},t.decorators=[{type:e.Component,args:[{selector:"angular-yandex-geoobject",template:"",styles:[""]}]}],t.ctorParameters=function(){return[]},t.propDecorators={feature:[{type:e.Input}],options:[{type:e.Input}]},t}(),c=function(){function t(t){this._yandexMapService=t,this.center=[],this.zoom=10,this.mapState={}}return t.prototype.ngOnInit=function(){this._logErrors(),this._setUniqueMapIdOfMap(),this._createMapWithObjects()},t.prototype._logErrors=function(){this.center.length||console.error("Map: center is required")},t.prototype._setUniqueMapIdOfMap=function(){this._uniqueMapId="f"+(~~(1e8*Math.random())).toString(16),this.mapContainer.nativeElement.setAttribute("id",this._uniqueMapId)},t.prototype._createMapWithObjects=function(){var t=this;this._yandexMapService.initMap().pipe(n.take(1)).subscribe(function(){t._combineInputs(),t._yandexMapService.createMap(t._uniqueMapId,t.mapState,t.mapOptions),t._addObjectsOnMap()})},t.prototype._combineInputs=function(){this.mapState.zoom=this.zoom,this.mapState.center=this.center,this.multiroutes.forEach(function(t){t.multirouteModel||(t.multirouteModel={}),t.multirouteModel.referencePoints=t.referencePoints})},t.prototype._addObjectsOnMap=function(){var t=this;this.placemarks.forEach(function(e){t._setPlacemarks(e)}),this.multiroutes.forEach(function(e){t._createMultiroute(e)}),this.geoObjects.forEach(function(e){t._createGeoObject(e)})},t.prototype._setPlacemarks=function(t){this._yandexMapService.createPlacemark(t.geometry,t.placemarkProperties,t.placemarkOptions)},t.prototype._createMultiroute=function(t){this._yandexMapService.createMultiroute(t.multirouteModel,t.multirouteOptions)},t.prototype._createGeoObject=function(t){this._yandexMapService.createGeoObject(t.feature,t.options)},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:i}]},t.propDecorators={mapContainer:[{type:e.ViewChild,args:["mapContainer",{"static":!0}]}],placemarks:[{type:e.ContentChildren,args:[a]}],multiroutes:[{type:e.ContentChildren,args:[p]}],geoObjects:[{type:e.ContentChildren,args:[s]}],center:[{type:e.Input}],zoom:[{type:e.Input}],mapState:[{type:e.Input}],mapOptions:[{type:e.Input}]},t}(),u=function(){function t(){}return t.forRoot=function(e){return{ngModule:t,providers:[{provide:"API_KEY",useValue:e}]}},t.decorators=[{type:e.NgModule,args:[{declarations:[c,a,p,s],imports:[r.CommonModule],exports:[c,a,p,s]}]}],t}();t.AngularYandexMapsModule=u,t.ɵa=c,t.ɵb=a,t.ɵc=p,t.ɵd=s,t.ɵe=i,Object.defineProperty(t,"__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,r,o,n){"use strict";var a=function(){function t(t){this._injector=t,this._isMapInited$=new o.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,r){this._map=new ymaps.Map(t,e,r)},t.prototype.addPlacemark=function(t,e,r){this._map.geoObjects.add(new ymaps.Placemark(t,e,r))},t.prototype.addMultiroute=function(t,e){this._map.geoObjects.add(new ymaps.multiRouter.MultiRoute(t,e))},t.prototype.addGeoObject=function(t,e){this._map.geoObjects.add(new ymaps.GeoObject(t,e))},t.prototype.addSearchControl=function(t,e){var r=new ymaps.control.SearchControl(e);this._map.controls.add(r),t&&r.search(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(){this._logErrors()},t.prototype._logErrors=function(){this.geometry||(console.error("Placemark: geometry input is required."),this.geometry=[])},t.decorators=[{type:e.Component,args:[{selector:"angular-yandex-placemark",template:"",styles:[""]}]}],t.ctorParameters=function(){return[]},t.propDecorators={geometry:[{type:e.Input}],placemarkProperties:[{type:e.Input}],placemarkOptions:[{type:e.Input}]},t}(),p=function(){function t(){}return t.prototype.ngOnInit=function(){this._logErrors()},t.prototype._logErrors=function(){this.referencePoints||(console.error("Multiroute: referencePoints input is required."),this.referencePoints=[])},t.decorators=[{type:e.Component,args:[{selector:"angular-yandex-multiroute",template:"",styles:[""]}]}],t.ctorParameters=function(){return[]},t.propDecorators={referencePoints:[{type:e.Input}],multirouteModel:[{type:e.Input}],multirouteOptions:[{type:e.Input}]},t}(),s=function(){function t(){}return t.prototype.ngOnInit=function(){this._logErrors()},t.prototype._logErrors=function(){this.feature||(console.error("GeoObjects: feature input is required."),this.feature={})},t.decorators=[{type:e.Component,args:[{selector:"angular-yandex-geoobject",template:"",styles:[""]}]}],t.ctorParameters=function(){return[]},t.propDecorators={feature:[{type:e.Input}],options:[{type:e.Input}]},t}(),c=function(){function t(){}return t.prototype.ngOnInit=function(){},t.decorators=[{type:e.Component,args:[{selector:"angular-yandex-search",template:"",styles:[""]}]}],t.ctorParameters=function(){return[]},t.propDecorators={searchRequest:[{type:e.Input}],parameters:[{type:e.Input}]},t}(),u=function(){function t(t){this._yandexMapService=t,this.zoom=10,this.mapState={},this.mapOptions={}}return t.prototype.ngOnInit=function(){this._logErrors(),this._setUniqueMapIdOfMap(),this._createMapWithObjects()},t.prototype._logErrors=function(){this.center||(console.error("Map: center input is required."),this.center=[])},t.prototype._setUniqueMapIdOfMap=function(){this._uniqueMapId="f"+(~~(1e8*Math.random())).toString(16),this.mapContainer.nativeElement.setAttribute("id",this._uniqueMapId)},t.prototype._createMapWithObjects=function(){var t=this;this._yandexMapService.initMap().pipe(n.take(1)).subscribe(function(){t._combineInputs(),t._yandexMapService.createMap(t._uniqueMapId,t.mapState,t.mapOptions),t._addObjectsOnMap()})},t.prototype._combineInputs=function(){this.mapState.zoom=this.zoom,this.mapState.center=this.center,this.multiroutes.forEach(function(t){t.multirouteModel||(t.multirouteModel={}),t.multirouteModel.referencePoints=t.referencePoints})},t.prototype._addObjectsOnMap=function(){var t=this;this.placemarks.forEach(function(e){t._addPlacemark(e)}),this.multiroutes.forEach(function(e){t._addMultiroute(e)}),this.geoObjects.forEach(function(e){t._addGeoObject(e)}),this.searchControl.first&&this._addSearchControl(this.searchControl.first)},t.prototype._addPlacemark=function(t){this._yandexMapService.addPlacemark(t.geometry,t.placemarkProperties,t.placemarkOptions)},t.prototype._addMultiroute=function(t){this._yandexMapService.addMultiroute(t.multirouteModel,t.multirouteOptions)},t.prototype._addGeoObject=function(t){this._yandexMapService.addGeoObject(t.feature,t.options)},t.prototype._addSearchControl=function(t){this._yandexMapService.addSearchControl(t.searchRequest,t.parameters)},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:a}]},t.propDecorators={mapContainer:[{type:e.ViewChild,args:["mapContainer",{"static":!0}]}],placemarks:[{type:e.ContentChildren,args:[i]}],multiroutes:[{type:e.ContentChildren,args:[p]}],geoObjects:[{type:e.ContentChildren,args:[s]}],searchControl:[{type:e.ContentChildren,args:[c]}],center:[{type:e.Input}],zoom:[{type:e.Input}],mapState:[{type:e.Input}],mapOptions:[{type:e.Input}]},t}(),d=function(){function t(){}return t.forRoot=function(e){return{ngModule:t,providers:[{provide:"API_KEY",useValue:e}]}},t.decorators=[{type:e.NgModule,args:[{declarations:[u,i,p,s,c],imports:[r.CommonModule],exports:[u,i,p,s,c]}]}],t}();t.AngularYandexMapsModule=d,t.ɵa=u,t.ɵb=i,t.ɵc=p,t.ɵd=s,t.ɵe=c,t.ɵf=a,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=angular8-yandex-maps.umd.min.js.map |
@@ -13,3 +13,4 @@ /** | ||
export { YandexPlacemarkComponent as ɵb } from './lib/components/yandex-placemark-component/yandex-placemark.component'; | ||
export { YandexMapService as ɵe } from './lib/services/yandex-map/yandex-map.service'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhcjgteWFuZGV4LW1hcHMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9hbmd1bGFyOC15YW5kZXgtbWFwcy8i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b21wb25lbnQnO1xuZXhwb3J0IHtZYW5kZXhQbGFjZW1hcmtDb21wb25lbnQgYXMgybVifSBmcm9tICcuL2xpYi9jb21wb25lbnRzL3lhbmRleC1wbGFjZW1hcmstY29tcG9uZW50L3lhbmRleC1wbGFjZW1hcmsuY29tcG9uZW50JztcbmV4cG9ydCB7WWFuZGV4TWFwU2VydmljZSBhcyDJtWV9IGZyb20gJy4vbGliL3NlcnZpY2VzL3lhbmRleC1tYXAveWFuZGV4LW1hcC5zZXJ2aWNlJzsiXX0= | ||
export { YandexSearchComponent as ɵe } from './lib/components/yandex-search-component/yandex-search.component'; | ||
export { YandexMapService as ɵf } from './lib/services/yandex-map/yandex-map.service'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhcjgteWFuZGV4LW1hcHMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9hbmd1bGFyOC15YW5kZXgtbWFwcy8iLCJzb3VyY2VzIjpbImFuZ3VsYXI4LXlhbmRleC1tYXBzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSx3Q0FBYyxjQUFjLENBQUM7QUFFN0IsT0FBTyxFQUFDLHdCQUF3QixJQUFJLEVBQUUsRUFBQyxNQUFNLHdFQUF3RSxDQUFDO0FBQ3RILE9BQU8sRUFBQyxrQkFBa0IsSUFBSSxFQUFFLEVBQUMsTUFBTSw0REFBNEQsQ0FBQztBQUNwRyxPQUFPLEVBQUMseUJBQXlCLElBQUksRUFBRSxFQUFDLE1BQU0sMEVBQTBFLENBQUM7QUFDekgsT0FBTyxFQUFDLHdCQUF3QixJQUFJLEVBQUUsRUFBQyxNQUFNLHdFQUF3RSxDQUFDO0FBQ3RILE9BQU8sRUFBQyxxQkFBcUIsSUFBSSxFQUFFLEVBQUMsTUFBTSxrRUFBa0UsQ0FBQztBQUM3RyxPQUFPLEVBQUMsZ0JBQWdCLElBQUksRUFBRSxFQUFDL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oobjectComponent } from './components/yandex-geoobject-component/yandex-geoobject.component'; | ||
import { YandexSearchComponent } from './components/yandex-search-component/yandex-search.component'; | ||
export class AngularYandexMapsModule { | ||
@@ -32,3 +33,4 @@ /** | ||
YandexMultirouteComponent, | ||
YandexGeoobjectComponent | ||
YandexGeoobjectComponent, | ||
YandexSearchComponent | ||
], | ||
@@ -42,6 +44,7 @@ imports: [ | ||
YandexMultirouteComponent, | ||
YandexGeoobjectComponent | ||
YandexGeoobjectComponent, | ||
YandexSearchComponent | ||
] | ||
},] } | ||
]; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhci15YW5kZXgtbWFwcy5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9hbmd1bGFyOC15YW5kZXgtbWFwcy8iLCJzb3VyY2VzIjpbImxpYi9hbmd1bGFyLXlhbmRleC1tYXBzLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sd0RBQXdELENBQUM7QUFFNUYsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sb0VBQW9FLENBQUM7QUFDOUcsT0FBTyxFQUFFLHlCQUF5QixFQUFFLE1BQU0sc0VBQXNFLENBQUM7QUFDakgsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sb0VBQW9FLENBQUM7QUFvQjlHLE1BQU0sT0FBTyx1QkFBdUI7Ozs7O0lBQ2xDLE1BQU0sQ0FBQyxPQUFPLENBQUMsTUFBYztRQUMzQixPQUFPO1lBQ0wsUUFBUSxFQUFFLHVCQUF1QjtZQUNqQyxTQUFTLEVBQUU7Z0JBQ1QsRUFBR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2Vvb2JqZWN0Q29tcG9uZW50IH0gZnJvbSAnLi9jb21wb25lbnRzL3lhbmRleC1nZW9vYmplY3QtY29tcG9uZW50L3lhbmRleC1nZW9vYmplY3QuY29tcG9uZW50JztcclxuXHJcbkBOZ01vZHVsZSh7XHJcbiAgZGVjbGFyYXRpb25zOiBbXHJcbiAgICBZYW5kZXhNYXBDb21wb25lbnQsXHJcbiAgICBZYW5kZXhQbGFjZW1hcmtDb21wb25lbnQsXHJcbiAgICBZYW5kZXhNdWx0aXJvdXRlQ29tcG9uZW50LFxyXG4gICAgWWFuZGV4R2Vvb2JqZWN0Q29tcG9uZW50XHJcbiAgXSxcclxuICBpbXBvcnRzOiBbXHJcbiAgICBDb21tb25Nb2R1bGVcclxuICBdLFxyXG4gIGV4cG9ydHM6IFtcclxuICAgIFlhbmRleE1hcENvbXBvbmVudCxcclxuICAgIFlhbmRleFBsYWNlbWFya0NvbXBvbmVudCxcclxuICAgIFlhbmRleE11bHRpcm91dGVDb21wb25lbnQsXHJcbiAgICBZYW5kZXhHZW9vYmplY3RDb21wb25lbnRcclxuICBdXHJcbn0pXHJcblxyXG5leHBvcnQgY2xhc3MgQW5ndWxhcllhbmRleE1hcHNNb2R1bGUge1xyXG4gIHN0YXRpYyBmb3JSb290KGFwaUtleTogc3RyaW5nKTogTW9kdWxlV2l0aFByb3ZpZGVycyB7XHJcbiAgICByZXR1cm4ge1xyXG4gICAgICBuZ01vZHVsZTogQW5ndWxhcllhbmRleE1hcHNNb2R1bGUsXHJcbiAgICAgIHByb3ZpZGVyczogW1xyXG4gICAgICAgIHsgcHJvdmlkZTogJ0FQSV9LRVknLCB1c2VWYWx1ZTogYXBpS2V5IH1cclxuICAgICAgXVxyXG4gICAgfTtcclxuICB9XHJcbn1cclxuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhci15YW5kZXgtbWFwcy5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc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GV4TWFwQ29tcG9uZW50LFxyXG4gICAgWWFuZGV4UGxhY2VtYXJrQ29tcG9uZW50LFxyXG4gICAgWWFuZGV4TXVsdGlyb3V0ZUNvbXBvbmVudCxcclxuICAgIFlhbmRleEdlb29iamVjdENvbXBvbmVudCxcclxuICAgIFlhbmRleFNlYXJjaENvbXBvbmVudFxyXG4gIF0sXHJcbiAgaW1wb3J0czogW1xyXG4gICAgQ29tbW9uTW9kdWxlXHJcbiAgXSxcclxuICBleHBvcnRzOiBbXHJcbiAgICBZYW5kZXhNYXBDb21wb25lbnQsXHJcbiAgICBZYW5kZXhQbGFjZW1hcmtDb21wb25lbnQsXHJcbiAgICBZYW5kZXhNdWx0aXJvdXRlQ29tcG9uZW50LFxyXG4gICAgWWFuZGV4R2Vvb2JqZWN0Q29tcG9uZW50LFxyXG4gICAgWWFuZGV4U2VhcmNoQ29tcG9uZW50XHJcbiAgXVxyXG59KVxyXG5cclxuZXhwb3J0IGNsYXNzIEFuZ3VsYXJZYW5kZXhNYXBzTW9kdWxlIHtcclxuICBzdGF0aWMgZm9yUm9vdChhcGlLZXk6IHN0cmluZyk6IE1vZHVsZVdpdGhQcm92aWRlcnMge1xyXG4gICAgcmV0dXJuIHtcclxuICAgICAgbmdNb2R1bGU6IEFuZ3VsYXJZYW5kZXhNYXBzTW9kdWxlLFxyXG4gICAgICBwcm92aWRlcnM6IFtcclxuICAgICAgICB7IHByb3ZpZGU6ICdBUElfS0VZJywgdXNlVmFsdWU6IGFwaUtleSB9XHJcbiAgICAgIF1cclxuICAgIH07XHJcbiAgfVxyXG59XHJcbiJdfQ== |
@@ -11,3 +11,15 @@ /** | ||
*/ | ||
ngOnInit() { } | ||
ngOnInit() { | ||
this._logErrors(); | ||
} | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
_logErrors() { | ||
if (!this.feature) { | ||
console.error('GeoObjects: feature input is required.'); | ||
this.feature = {}; | ||
} | ||
} | ||
} | ||
@@ -33,2 +45,2 @@ YandexGeo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gSW5wdXQgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcclxuXHJcbkBDb21wb25lbnQoe1xyXG4gIHNlbGVjdG9yOiAnYW5ndWxhci15YW5kZXgtZ2Vvb2JqZWN0JyxcclxuICB0ZW1wbGF0ZVVybDogJy4veWFuZGV4LWdlb29iamVjdC5jb21wb25lbnQuaHRtbCcsXHJcbiAgc3R5bGVVcmxzOiBbJy4veWFuZGV4LWdlb29iamVjdC5jb21wb25lbnQuc2NzcyddXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBZYW5kZXhHZW9vYmplY3RDb21wb25lbnQgaW1wbGVtZW50cyBPbkluaXQge1xyXG4gIEBJbnB1dCgpIHB1YmxpYyBmZWF0dXJlOiBhbnk7XHJcbiAgQElucHV0KCkgcHVibGljIG9wdGlvbnM6IGFueTtcclxuXHJcbiAgY29uc3RydWN0b3IoKSB7fVxyXG5cclxuICBwdWJsaWMgbmdPbkluaXQoKTogdm9pZCB7XHJcbiAgICB0aGlzLl9sb2dFcnJvcnMoKTtcclxuICB9XHJcblxyXG4gIHByaXZhdGUgX2xvZ0Vycm9ycygpOiB2b2lkIHtcclxuICAgIGlmICghdGhpcy5mZWF0dXJlKSB7XHJcbiAgICAgIGNvbnNvbGUuZXJyb3IoJ0dlb09iamVjdHM6IGZlYXR1cmUgaW5wdXQgaXMgcmVxdWlyZWQuJyk7XHJcbiAgICAgIHRoaXMuZmVhdHVyZSA9IHt9O1xyXG4gICAgfVxyXG4gIH1cclxufVxyXG4iXX0= |
@@ -11,2 +11,3 @@ /** | ||
import { YandexGeoobjectComponent } from '../yandex-geoobject-component/yandex-geoobject.component'; | ||
import { YandexSearchComponent } from '../yandex-search-component/yandex-search.component'; | ||
export class YandexMapComponent { | ||
@@ -18,5 +19,5 @@ /** | ||
this._yandexMapService = _yandexMapService; | ||
this.center = []; | ||
this.zoom = 10; | ||
this.mapState = {}; | ||
this.mapOptions = {}; | ||
} | ||
@@ -36,4 +37,6 @@ /** | ||
_logErrors() { | ||
if (!this.center.length) | ||
console.error('Map: center is required'); | ||
if (!this.center) { | ||
console.error('Map: center input is required.'); | ||
this.center = []; | ||
} | ||
} | ||
@@ -94,3 +97,3 @@ /** | ||
(placemark) => { | ||
this._setPlacemarks(placemark); | ||
this._addPlacemark(placemark); | ||
})); | ||
@@ -102,3 +105,3 @@ this.multiroutes.forEach((/** | ||
(multiroute) => { | ||
this._createMultiroute(multiroute); | ||
this._addMultiroute(multiroute); | ||
})); | ||
@@ -110,7 +113,9 @@ this.geoObjects.forEach((/** | ||
(geoObject) => { | ||
this._createGeoObject(geoObject); | ||
this._addGeoObject(geoObject); | ||
})); | ||
if (this.searchControl.first) | ||
this._addSearchControl(this.searchControl.first); | ||
} | ||
/** | ||
* Add objects with params in map.geoObjects | ||
* Add objects, controls on map | ||
* @private | ||
@@ -120,4 +125,4 @@ * @param {?} placemark | ||
*/ | ||
_setPlacemarks(placemark) { | ||
this._yandexMapService.createPlacemark(placemark.geometry, placemark.placemarkProperties, placemark.placemarkOptions); | ||
_addPlacemark(placemark) { | ||
this._yandexMapService.addPlacemark(placemark.geometry, placemark.placemarkProperties, placemark.placemarkOptions); | ||
} | ||
@@ -129,4 +134,4 @@ /** | ||
*/ | ||
_createMultiroute(multiroute) { | ||
this._yandexMapService.createMultiroute(multiroute.multirouteModel, multiroute.multirouteOptions); | ||
_addMultiroute(multiroute) { | ||
this._yandexMapService.addMultiroute(multiroute.multirouteModel, multiroute.multirouteOptions); | ||
} | ||
@@ -138,5 +143,13 @@ /** | ||
*/ | ||
_createGeoObject(geoObject) { | ||
this._yandexMapService.createGeoObject(geoObject.feature, geoObject.options); | ||
_addGeoObject(geoObject) { | ||
this._yandexMapService.addGeoObject(geoObject.feature, geoObject.options); | ||
} | ||
/** | ||
* @private | ||
* @param {?} search | ||
* @return {?} | ||
*/ | ||
_addSearchControl(search) { | ||
this._yandexMapService.addSearchControl(search.searchRequest, search.parameters); | ||
} | ||
} | ||
@@ -159,2 +172,3 @@ YandexMapComponent.decorators = [ | ||
geoObjects: [{ type: ContentChildren, args: [YandexGeoobjectComponent,] }], | ||
searchControl: [{ type: ContentChildren, args: [YandexSearchComponent,] }], | ||
center: [{ type: Input }], | ||
@@ -175,2 +189,4 @@ zoom: [{ type: Input }], | ||
/** @type {?} */ | ||
YandexMapComponent.prototype.searchControl; | ||
/** @type {?} */ | ||
YandexMapComponent.prototype.center; | ||
@@ -194,2 +210,2 @@ /** @type {?} */ | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieWFuZGV4LW1hcC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9hbmd1bGFyOC15YW5kZXgtbWFwcy8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL3lhbmRleC1tYXAtY29tcG9uZW50L3lhbmRleC1tYXAuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLEtBQUssRUFBRSxTQUFTLEVBQUUsVUFBVSxFQUFFLGVBQWUsRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDNUcsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sOENBQThDLENBQUM7QUFDaEYsT0FBTyxFQUFFLElBQUksRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3RDLE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLDBEQUEwRCxDQUFDO0FBQ3BHLE9BQU8sRUFBRSx5QkFBeUIsRUFBRSxNQUFNLDREQUE0RCxDQUFDO0FBQ3ZHLE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLDBEQUEwRCxDQUFDO0FBT3BHLE1BQU0sT0FBTyxrQkFBa0I7Ozs7SUFhN0IsWUFBb0IsaUJBQW1DO1FBQW5DLHNCQUFpQixHQUFqQixpQkFBaUIsQ0FBa0I7UUFQdkMsV0FB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xuICB9XHJcbn1cclxuIl19 |
@@ -7,5 +7,3 @@ /** | ||
export class YandexMultirouteComponent { | ||
constructor() { | ||
this.referencePoints = []; | ||
} | ||
constructor() { } | ||
/** | ||
@@ -22,4 +20,6 @@ * @return {?} | ||
_logErrors() { | ||
if (!this.referencePoints.length) | ||
console.error('Multiroute: referencePoints is required'); | ||
if (!this.referencePoints) { | ||
console.error('Multiroute: referencePoints input is required.'); | ||
this.referencePoints = []; | ||
} | ||
} | ||
@@ -49,2 +49,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieWFuZGV4LW11bHRpcm91dGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vYW5ndWxhcjgteWFuZGV4LW1hcHMvIiwic291cmNlcyI6WyJsaWIvY29tcG9uZW50cy95YW5kZXgtbXVsdGlyb3V0ZS1jb21wb25lbnQveWFuZGV4LW11bHRpcm91dGUuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBVSxNQUFNLGVBQWUsQ0FBQztBQU96RCxNQUFNLE9BQU8seUJBQXlCO0lBS3BDO1FBSmdCLG9CQUFlLEdBQWUsRUFBRSxDQUFDO0lBSWpDLENBQUM7Ozs7SUFFVixRQUFRO1FBQ2IsSUFBSSxDQUFDLFVBQVUsRUFBRSxDQUFDO0lBQ3BCLENBQUM7Ozs7O0lBRU8sVUFBVTtRQUNoQixJQUFJLENBQUMsSUFBSSxDQUFDLGVBQWUsQ0FBQyxNQUFNO1lBQUUsT0FBTyxDQUFDLEtBQUssQ0FBQyx5Q0FBeUMsQ0FBQyxDQUFDO0lBQzdGLENBQUM7OztZQWxCRixTQUFTLFNBQUM7Z0JBQ1QsUUFBUSxFQUFFLDJCQUEyQjtnQkFDckMsWUFBaUQ7O2FBRWxEOzs7Ozs4QkFFRSxLQUF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UuY29tcG9uZW50Lmh0bWwnLFxyXG4gIHN0eWxlVXJsczogWycuL3lhbmRleC1tdWx0aXJvdXRlLmNvbXBvbmVudC5zY3NzJ11cclxufSlcclxuZXhwb3J0IGNsYXNzIFlhbmRleE11bHRpcm91dGVDb21wb25lbnQgaW1wbGVtZW50cyBPbkluaXQge1xyXG4gIEBJbnB1dCgpIHB1YmxpYyByZWZlcmVuY2VQb2ludHM6IEFycmF5PGFueT47XHJcbiAgQElucHV0KCkgcHVibGljIG11bHRpcm91dGVNb2RlbDogYW55O1xyXG4gIEBJbnB1dCgpIHB1YmxpYyBtdWx0aXJvdXRlT3B0aW9uczogYW55O1xyXG5cclxuICBjb25zdHJ1Y3RvcigpIHsgfVxyXG5cclxuICBwdWJsaWMgbmdPbkluaXQoKTogdm9pZCB7XHJcbiAgICB0aGlzLl9sb2dFcnJvcnMoKTtcclxuICB9XHJcblxyXG4gIHByaXZhdGUgX2xvZ0Vycm9ycygpOiB2b2lkIHtcclxuICAgIGlmICghdGhpcy5yZWZlcmVuY2VQb2ludHMpIHtcclxuICAgICAgY29uc29sZS5lcnJvcignTXVsdGlyb3V0ZTogcmVmZXJlbmNlUG9pbnRzIGlucHV0IGlzIHJlcXVpcmVkLicpO1xyXG4gICAgICB0aGlzLnJlZmVyZW5jZVBvaW50cyA9IFtdO1xyXG4gICAgfVxyXG4gIH1cclxufVxyXG4iXX0= |
@@ -7,5 +7,3 @@ /** | ||
export class YandexPlacemarkComponent { | ||
constructor() { | ||
this.geometry = []; | ||
} | ||
constructor() { } | ||
/** | ||
@@ -22,4 +20,6 @@ * @return {?} | ||
_logErrors() { | ||
if (!this.geometry.length) | ||
console.error('Placemark: geometry is required'); | ||
if (!this.geometry) { | ||
console.error('Placemark: geometry input is required.'); | ||
this.geometry = []; | ||
} | ||
} | ||
@@ -49,2 +49,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieWFuZGV4LXBsYWNlb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HVibGljIG5nT25Jbml0KCk6IHZvaWQge1xyXG4gICAgdGhpcy5fbG9nRXJyb3JzKCk7XHJcbiAgfVxyXG5cclxuICBwcml2YXRlIF9sb2dFcnJvcnMoKTogdm9pZCB7XHJcbiAgICBpZiAoIXRoaXMuZ2VvbWV0cnkpIHtcclxuICAgICAgY29uc29sZS5lcnJvcignUGxhY2VtYXJrOiBnZW9tZXRyeSBpbnB1dCBpcyByZXF1aXJlZC4nKTtcclxuICAgICAgdGhpcy5nZW9tZXRyeSA9IFtdO1xyXG4gICAgfVxyXG4gIH1cclxufVxyXG4iXX0= |
@@ -18,2 +18,4 @@ /** | ||
/** | ||
* Init ymaps script if it's not initiated | ||
* Trigger map subject on script load | ||
* @return {?} | ||
@@ -49,2 +51,3 @@ */ | ||
/** | ||
* Create new Map class instance | ||
* @param {?} mapId | ||
@@ -59,2 +62,3 @@ * @param {?} state | ||
/** | ||
* Add objects, controls on map | ||
* @param {?} geometry | ||
@@ -65,3 +69,3 @@ * @param {?} properties | ||
*/ | ||
createPlacemark(geometry, properties, options) { | ||
addPlacemark(geometry, properties, options) { | ||
this._map.geoObjects | ||
@@ -75,3 +79,3 @@ .add(new ymaps.Placemark(geometry, properties, options)); | ||
*/ | ||
createMultiroute(model, options) { | ||
addMultiroute(model, options) { | ||
this._map.geoObjects | ||
@@ -85,6 +89,21 @@ .add(new ymaps.multiRouter.MultiRoute(model, options)); | ||
*/ | ||
createGeoObject(feature, options) { | ||
addGeoObject(feature, options) { | ||
this._map.geoObjects | ||
.add(new ymaps.GeoObject(feature, options)); | ||
} | ||
/** | ||
* Create new SearchControl class instance with properies | ||
* If searchRequest is provided -> force search in the current area | ||
* @param {?} request | ||
* @param {?} properties | ||
* @return {?} | ||
*/ | ||
addSearchControl(request, properties) { | ||
/** @type {?} */ | ||
const searchControl = new ymaps.control.SearchControl(properties); | ||
this._map.controls | ||
.add(searchControl); | ||
if (request) | ||
searchControl.search(request); | ||
} | ||
} | ||
@@ -133,2 +152,2 @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IHdpdGggcHJvcGVyaWVzXHJcbiAgICogSWYgc2VhcmNoUmVxdWVzdCBpcyBwcm92aWRlZCAtPiBmb3JjZSBzZWFyY2ggaW4gdGhlIGN1cnJlbnQgYXJlYVxyXG4gICAqIEBwYXJhbSByZXF1ZXN0XHJcbiAgICogQHBhcmFtIHByb3BlcnRpZXNcclxuICAgKi9cclxuICBwdWJsaWMgYWRkU2VhcmNoQ29udHJvbChyZXF1ZXN0OiBzdHJpbmcsIHByb3BlcnRpZXM6IGFueSk6IHZvaWQge1xyXG4gICAgY29uc3Qgc2VhcmNoQ29udHJvbCA9IG5ldyB5bWFwcy5jb250cm9sLlNlYXJjaENvbnRyb2wocHJvcGVydGllcyk7XHJcblxyXG4gICAgdGhpcy5fbWFwLmNvbnRyb2xzXHJcbiAgICAgIC5hZGQoc2VhcmNoQ29udHJvbCk7XHJcblxyXG4gICAgaWYgKHJlcXVlc3QpIHNlYXJjaENvbnRyb2wuc2VhcmNoKHJlcXVlc3QpO1xyXG4gIH1cclxufVxyXG4iXX0= |
@@ -27,3 +27,3 @@ /** | ||
*/ | ||
IYandexMapService.prototype.createPlacemark = function (geometry, properties, options) { }; | ||
IYandexMapService.prototype.addPlacemark = function (geometry, properties, options) { }; | ||
/** | ||
@@ -34,3 +34,3 @@ * @param {?} model | ||
*/ | ||
IYandexMapService.prototype.createMultiroute = function (model, options) { }; | ||
IYandexMapService.prototype.addMultiroute = function (model, options) { }; | ||
/** | ||
@@ -41,4 +41,10 @@ * @param {?} feature | ||
*/ | ||
IYandexMapService.prototype.createGeoObject = function (feature, options) { }; | ||
IYandexMapService.prototype.addGeoObject = function (feature, options) { }; | ||
/** | ||
* @param {?} request | ||
* @param {?} properties | ||
* @return {?} | ||
*/ | ||
IYandexMapService.prototype.addSearchControl = function (request, properties) { }; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieWFuZGV4LXNlcnZpY2UudHlwZS5qcyIsInNvdXJjZVJ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dzIjoiOzs7Ozs7O0FBRUEsdUNBT0M7Ozs7O0lBTkMsc0RBQTRCOzs7Ozs7O0lBQzVCLDZFQUF5RDs7Ozs7OztJQUN6RCx3RkFBaUU7Ozs7OztJQUNqRSwwRUFBOEM7Ozs7OztJQUM5QywyRUFBK0M7Ozs7OztJQUMvQyxrRkFBd0QiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBTdWJqZWN0IH0gZnJvbSAncnhqcyc7XHJcblxyXG5leHBvcnQgaW50ZXJmYWNlIElZYW5kZXhNYXBTZXJ2aWNlIHtcclxuICBpbml0TWFwKCk6IFN1YmplY3Q8Ym9vbGVhbj47XHJcbiAgY3JlYXRlTWFwKG1hcElkOiBzdHJpbmcsIHN0YXRlOiBhbnksIG9wdGlvbnM6IGFueSk6IHZvaWQ7XHJcbiAgYWRkUGxhY2VtYXJrKGdlb21ldHJ5OiBhbnksIHByb3BlcnRpZXM6IGFueSwgb3B0aW9uczogYW55KTogdm9pZDtcclxuICBhZGRNdWx0aXJvdXRlKG1vZGVsOiBhbnksIG9wdGlvbnM6IGFueSk6IHZvaWQ7XHJcbiAgYWRkR2VvT2JqZWN0KGZlYXR1cmU6IGFueSwgb3B0aW9uczogYW55KTogdm9pZDtcclxuICBhZGRTZWFyY2hDb250cm9sKHJlcXVlc3Q6IHN0cmluZywgcHJvcGVydGllczogYW55KTogdm9pZFxyXG59XHJcbiJdfQ== |
@@ -13,3 +13,4 @@ /** | ||
export { YandexPlacemarkComponent as ɵb } from './lib/components/yandex-placemark-component/yandex-placemark.component'; | ||
export { YandexMapService as ɵe } from './lib/services/yandex-map/yandex-map.service'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhcjgteWFuZGV4LW1hcHMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9hbmd1bGFyOC15YW5kZXgtbWFwcy8iLCJzb3VyY2VzIjpbImFuZ3VsYXI4LXlhbmRleC1tYXBzL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tDb21wb25lbnQgYXMgybVifSBmcm9tICcuL2xpYi9jb21wb25lbnRzL3lhbmRleC1wbGFjZW1hcmstY29tcG9uZW50L3lhbmRleC1wbGFjZW1hcmsuY29tcG9uZW50JztcbmV4cG9ydCB7WWFuZGV4TWFwU2VydmljZSBhcyDJtWV9IGZyb20gJy4vbGliL3NlcnZpY2VzL3lhbmRleC1tYXAveWFuZGV4LW1hcC5zZXJ2aWNlJzsiXX0= | ||
export { YandexSearchComponent as ɵe } from './lib/components/yandex-search-component/yandex-search.component'; | ||
export { YandexMapService as ɵf } from './lib/services/yandex-map/yandex-map.service'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhcjgteWFuZGV4LW1hcHMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9hbmd1bGFyOC15YW5kZXgtbWFwcy8iLCJzb3VyY2VzIjpbImFuZ3VsYXI4LXlhbmRleC1tYXBzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSx3Q0FBYyxjQUFjLENBQUM7QUFFN0IsT0FBTyxFQUFDLHdCQUF3QixJQUFJLEVBQUUsRUFBQyxNQUFNLHdFQUF3RSxDQUFDO0FBQ3RILE9BQU8sRUFBQyxrQkFBa0IsSUFBSSxFQUFFLEVBQUMsTUFBTSw0REFBNEQsQ0FBQztBQUNwRyxPQUFPLEVBQUMseUJBQXlCLElBQUksRUFBRSxFQUFDLE1BQU0sMEVBQTBFLENBQUM7QUFDekgsT0FBTyxFQUFDLHdCQUF3QixJQUFJLEVBQUUsRUFBQyxNQUFNLHdFQUF3RSxDQUFDO0FBQ3RILE9BQU8sRUFBQyxxQkFBcUIsSUFBSSxFQUFFLEVBQUMsTUFBTSxrRUFBa0UsQ0FBQztBQUM3RyxPQUFPLEVBQUMsZ0JBQWdCLElBQUksRUFBRSxFQUFDLE1BQU0sOENBQThDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG5cbmV4cG9ydCB7WWFuZGV4R2Vvb2JqZWN0Q29tcG9uZW50IGFzIMm1ZH0gZnJvbSAnLi9saWIvY29tcG9uZW50cy95YW5kZXgtZ2Vvb2JqZWN0LWNvbXBvbmVudC95YW5kZXgtZ2Vvb2JqZWN0LmNvbXBvbmVudCc7XG5leHBvcnQge1lhbmRleE1hcENvbXBvbmVudCBhcyDJtWF9IGZyb20gJy4vbGliL2NvbXBvbmVudHMveWFuZGV4LW1hcC1jb21wb25lbnQveWFuZGV4LW1hcC5jb21wb25lbnQnO1xuZXhwb3J0IHtZYW5kZXhNdWx0aXJvdXRlQ29tcG9uZW50IGFzIMm1Y30gZnJvbSAnLi9saWIvY29tcG9uZW50cy95YW5kZXgtbXVsdGlyb3V0ZS1jb21wb25lbnQveWFuZGV4LW11bHRpcm91dGUuY29tcG9uZW50JztcbmV4cG9ydCB7WWFuZGV4UGxhY2VtYXJrQ29tcG9uZW50IGFzIMm1Yn0gZnJvbSAnLi9saWIvY29tcG9uZW50cy95YW5kZXgtcGxhY2VtYXJrLWNvbXBvbmVudC95YW5kZXgtcGxhY2VtYXJrLmNvbXBvbmVudCc7XG5leHBvcnQge1lhbmRleFNlYXJjaENvbXBvbmVudCBhcyDJtWV9IGZyb20gJy4vbGliL2NvbXBvbmVudHMveWFuZGV4LXNlYXJjaC1jb21wb25lbnQveWFuZGV4LXNlYXJjaC5jb21wb25lbnQnO1xuZXhwb3J0IHtZYW5kZXhNYXBTZXJ2aWNlIGFzIMm1Zn0gZnJvbSAnLi9saWIvc2VydmljZXMveWFuZGV4LW1hcC95YW5kZXgtbWFwLnNlcnZpY2UnOyJdfQ== |
@@ -11,2 +11,3 @@ /** | ||
import { YandexGeoobjectComponent } from './components/yandex-geoobject-component/yandex-geoobject.component'; | ||
import { YandexSearchComponent } from './components/yandex-search-component/yandex-search.component'; | ||
var AngularYandexMapsModule = /** @class */ (function () { | ||
@@ -37,3 +38,4 @@ function AngularYandexMapsModule() { | ||
YandexMultirouteComponent, | ||
YandexGeoobjectComponent | ||
YandexGeoobjectComponent, | ||
YandexSearchComponent | ||
], | ||
@@ -47,3 +49,4 @@ imports: [ | ||
YandexMultirouteComponent, | ||
YandexGeoobjectComponent | ||
YandexGeoobjectComponent, | ||
YandexSearchComponent | ||
] | ||
@@ -55,2 +58,2 @@ },] } | ||
export { AngularYandexMapsModule }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhci15YW5kZXgtbWFwcy5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9hbmd1bGFyOC15YW5kZXgtbWFwcy8iLCJzb3VyY2VzIjpbImxpYi9hbmd1bGFyLXlhbmRleC1tYXBzLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sd0RBQXdELENBQUM7QUFFNUYsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sb0VBQW9FLENBQUM7QUFDOUcsT0FBTyxFQUFFLHlCQUF5QixFQUFFLE1BQU0sc0VBQXNFLENBQUM7QUFDakgsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sb0VBQW9FLENBQUM7QUFFOUc7SUFBQTtJQTJCQSxDQUFDOzs7OztJQVJRLCtCQUFPOzs7O0lBQWQsVUFBZSxNQUFjO1FBQzNCLE9BQU87WUFDTCxRQUFRLEVBQUUsdUJBQXVCO1lBQ2pDLFNBQVMsRUFBRTtnQkFDVCxFQUFFLE9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ZXgtbXVsdGlyb3V0ZS5jb21wb25lbnQnO1xyXG5pbXBvcnQgeyBZYW5kZXhHZW9vYmplY3RDb21wb25lbnQgfSBmcm9tICcuL2NvbXBvbmVudHMveWFuZGV4LWdlb29iamVjdC1jb21wb25lbnQveWFuZGV4LWdlb29iamVjdC5jb21wb25lbnQnO1xyXG5cclxuQE5nTW9kdWxlKHtcclxuICBkZWNsYXJhdGlvbnM6IFtcclxuICAgIFlhbmRleE1hcENvbXBvbmVudCxcclxuICAgIFlhbmRleFBsYWNlbWFya0NvbXBvbmVudCxcclxuICAgIFlhbmRleE11bHRpcm91dGVDb21wb25lbnQsXHJcbiAgICBZYW5kZXhHZW9vYmplY3RDb21wb25lbnRcclxuICBdLFxyXG4gIGltcG9ydHM6IFtcclxuICAgIENvbW1vbk1vZHVsZVxyXG4gIF0sXHJcbiAgZXhwb3J0czogW1xyXG4gICAgWWFuZGV4TWFwQ29tcG9uZW50LFxyXG4gICAgWWFuZGV4UGxhY2VtYXJrQ29tcG9uZW50LFxyXG4gICAgWWFuZGV4TXVsdGlyb3V0ZUNvbXBvbmVudCxcclxuICAgIFlhbmRleEdlb29iamVjdENvbXBvbmVudFxyXG4gIF1cclxufSlcclxuXHJcbmV4cG9ydCBjbGFzcyBBbmd1bGFyWWFuZGV4TWFwc01vZHVsZSB7XHJcbiAgc3RhdGljIGZvclJvb3QoYXBpS2V5OiBzdHJpbmcpOiBNb2R1bGVXaXRoUHJvdmlkZXJzIHtcclxuICAgIHJldHVybiB7XHJcbiAgICAgIG5nTW9kdWxlOiBBbmd1bGFyWWFuZGV4TWFwc01vZHVsZSxcclxuICAgICAgcHJvdmlkZXJzOiBbXHJcbiAgICAgICAgeyBwcm92aWRlOiAnQVBJX0tFWScsIHVzZVZhbHVlOiBhcGlLZXkgfVxyXG4gICAgICBdXHJcbiAgICB9O1xyXG4gIH1cclxufVxyXG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjo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yY2gtY29tcG9uZW50L3lhbmRleC1zZWFyY2guY29tcG9uZW50JztcclxuXHJcbkBOZ01vZHVsZSh7XHJcbiAgZGVjbGFyYXRpb25zOiBbXHJcbiAgICBZYW5kZXhNYXBDb21wb25lbnQsXHJcbiAgICBZYW5kZXhQbGFjZW1hcmtDb21wb25lbnQsXHJcbiAgICBZYW5kZXhNdWx0aXJvdXRlQ29tcG9uZW50LFxyXG4gICAgWWFuZGV4R2Vvb2JqZWN0Q29tcG9uZW50LFxyXG4gICAgWWFuZGV4U2VhcmNoQ29tcG9uZW50XHJcbiAgXSxcclxuICBpbXBvcnRzOiBbXHJcbiAgICBDb21tb25Nb2R1bGVcclxuICBdLFxyXG4gIGV4cG9ydHM6IFtcclxuICAgIFlhbmRleE1hcENvbXBvbmVudCxcclxuICAgIFlhbmRleFBsYWNlbWFya0NvbXBvbmVudCxcclxuICAgIFlhbmRleE11bHRpcm91dGVDb21wb25lbnQsXHJcbiAgICBZYW5kZXhHZW9vYmplY3RDb21wb25lbnQsXHJcbiAgICBZYW5kZXhTZWFyY2hDb21wb25lbnRcclxuICBdXHJcbn0pXHJcblxyXG5leHBvcnQgY2xhc3MgQW5ndWxhcllhbmRleE1hcHNNb2R1bGUge1xyXG4gIHN0YXRpYyBmb3JSb290KGFwaUtleTogc3RyaW5nKTogTW9kdWxlV2l0aFByb3ZpZGVycyB7XHJcbiAgICByZXR1cm4ge1xyXG4gICAgICBuZ01vZHVsZTogQW5ndWxhcllhbmRleE1hcHNNb2R1bGUsXHJcbiAgICAgIHByb3ZpZGVyczogW1xyXG4gICAgICAgIHsgcHJvdmlkZTogJ0FQSV9LRVknLCB1c2VWYWx1ZTogYXBpS2V5IH1cclxuICAgICAgXVxyXG4gICAgfTtcclxuICB9XHJcbn1cclxuIl19 |
@@ -15,3 +15,19 @@ /** | ||
*/ | ||
function () { }; | ||
function () { | ||
this._logErrors(); | ||
}; | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
YandexGeoobjectComponent.prototype._logErrors = /** | ||
* @private | ||
* @return {?} | ||
*/ | ||
function () { | ||
if (!this.feature) { | ||
console.error('GeoObjects: feature input is required.'); | ||
this.feature = {}; | ||
} | ||
}; | ||
YandexGeoobjectComponent.decorators = [ | ||
@@ -39,2 +55,2 @@ { type: Component, args: [{ | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieWFuZGV4LWdlb29iamVjdC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9hbmd1bGFyOC15YW5kZXgtbWFwcy8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL3lhbmRleC1nZW9vYmplY3QtY29tcG9uZW50L3lhbmRleC1nZW9vYmplY3QuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUV6RDtJQVNFO0lBQWUsQ0FBQzs7OztJQUNULDJDQUFROzs7SUFBZixjQUF5QixDQUFDOztnQkFWM0IsU0FBUyxTQUFDO29CQUNULFFBQVEsRUFBRSwwQkFBMEI7b0JBQ3BDLFlBQWdEOztpQkFFakQ7Ozs7OzBCQUVFLEtBQUs7MEJBQ0wsS0FBSzs7SUFJUiwrQkFBQztDQUFBLEFBWEQsSUFXQztTQU5ZLHdCQUF3Qjs7O0lBQ25DLDJDQUE2Qjs7SUFDN0IsMkNBQTZCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBPbkluaXQsIElucHV0IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XHJcblxyXG5AQ29tcG9uZW50KHtcclxuICBzZWxlY3RvcjogJ2FuZ3VsYXIteWFuZGV4LWdlb29iamVjdCcsXHJcbiAgdGVtcGxhdGVVcmw6ICcuL3lhbmRleC1nZW9vYmplY3QuY29tcG9uZW50Lmh0b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@ /** | ||
import { YandexGeoobjectComponent } from '../yandex-geoobject-component/yandex-geoobject.component'; | ||
import { YandexSearchComponent } from '../yandex-search-component/yandex-search.component'; | ||
var YandexMapComponent = /** @class */ (function () { | ||
function YandexMapComponent(_yandexMapService) { | ||
this._yandexMapService = _yandexMapService; | ||
this.center = []; | ||
this.zoom = 10; | ||
this.mapState = {}; | ||
this.mapOptions = {}; | ||
} | ||
@@ -39,4 +40,6 @@ /** | ||
function () { | ||
if (!this.center.length) | ||
console.error('Map: center is required'); | ||
if (!this.center) { | ||
console.error('Map: center input is required.'); | ||
this.center = []; | ||
} | ||
}; | ||
@@ -119,3 +122,3 @@ /** | ||
function (placemark) { | ||
_this._setPlacemarks(placemark); | ||
_this._addPlacemark(placemark); | ||
})); | ||
@@ -127,3 +130,3 @@ this.multiroutes.forEach((/** | ||
function (multiroute) { | ||
_this._createMultiroute(multiroute); | ||
_this._addMultiroute(multiroute); | ||
})); | ||
@@ -135,10 +138,12 @@ this.geoObjects.forEach((/** | ||
function (geoObject) { | ||
_this._createGeoObject(geoObject); | ||
_this._addGeoObject(geoObject); | ||
})); | ||
if (this.searchControl.first) | ||
this._addSearchControl(this.searchControl.first); | ||
}; | ||
/** | ||
* Add objects with params in map.geoObjects | ||
* Add objects, controls on map | ||
*/ | ||
/** | ||
* Add objects with params in map.geoObjects | ||
* Add objects, controls on map | ||
* @private | ||
@@ -148,4 +153,4 @@ * @param {?} placemark | ||
*/ | ||
YandexMapComponent.prototype._setPlacemarks = /** | ||
* Add objects with params in map.geoObjects | ||
YandexMapComponent.prototype._addPlacemark = /** | ||
* Add objects, controls on map | ||
* @private | ||
@@ -156,3 +161,3 @@ * @param {?} placemark | ||
function (placemark) { | ||
this._yandexMapService.createPlacemark(placemark.geometry, placemark.placemarkProperties, placemark.placemarkOptions); | ||
this._yandexMapService.addPlacemark(placemark.geometry, placemark.placemarkProperties, placemark.placemarkOptions); | ||
}; | ||
@@ -164,3 +169,3 @@ /** | ||
*/ | ||
YandexMapComponent.prototype._createMultiroute = /** | ||
YandexMapComponent.prototype._addMultiroute = /** | ||
* @private | ||
@@ -171,3 +176,3 @@ * @param {?} multiroute | ||
function (multiroute) { | ||
this._yandexMapService.createMultiroute(multiroute.multirouteModel, multiroute.multirouteOptions); | ||
this._yandexMapService.addMultiroute(multiroute.multirouteModel, multiroute.multirouteOptions); | ||
}; | ||
@@ -179,3 +184,3 @@ /** | ||
*/ | ||
YandexMapComponent.prototype._createGeoObject = /** | ||
YandexMapComponent.prototype._addGeoObject = /** | ||
* @private | ||
@@ -186,4 +191,17 @@ * @param {?} geoObject | ||
function (geoObject) { | ||
this._yandexMapService.createGeoObject(geoObject.feature, geoObject.options); | ||
this._yandexMapService.addGeoObject(geoObject.feature, geoObject.options); | ||
}; | ||
/** | ||
* @private | ||
* @param {?} search | ||
* @return {?} | ||
*/ | ||
YandexMapComponent.prototype._addSearchControl = /** | ||
* @private | ||
* @param {?} search | ||
* @return {?} | ||
*/ | ||
function (search) { | ||
this._yandexMapService.addSearchControl(search.searchRequest, search.parameters); | ||
}; | ||
YandexMapComponent.decorators = [ | ||
@@ -205,2 +223,3 @@ { type: Component, args: [{ | ||
geoObjects: [{ type: ContentChildren, args: [YandexGeoobjectComponent,] }], | ||
searchControl: [{ type: ContentChildren, args: [YandexSearchComponent,] }], | ||
center: [{ type: Input }], | ||
@@ -224,2 +243,4 @@ zoom: [{ type: Input }], | ||
/** @type {?} */ | ||
YandexMapComponent.prototype.searchControl; | ||
/** @type {?} */ | ||
YandexMapComponent.prototype.center; | ||
@@ -243,2 +264,2 @@ /** @type {?} */ | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieWFuZGV4LW1hcC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9hbmd1bGFyOC15YW5kZXgtbWFwcy8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL3lhbmRleC1tYXAtY29tcG9uZW50L3lhbmR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RkUGxhY2VtYXJrKHBsYWNlbWFyazogWWFuZGV4UGxhY2VtYXJrQ29tcG9uZW50KTogdm9pZCB7XHJcbiAgICB0aGlzLl95YW5kZXhNYXBTZXJ2aWNlLmFkZFBsYWNlbWFyayhwbGFjZW1hcmsuZ2VvbWV0cnksIHBsYWNlbWFyay5wbGFjZW1hcmtQcm9wZXJ0aWVzLCBwbGFjZW1hcmsucGxhY2VtYXJrT3B0aW9ucyk7XHJcbiAgfVxyXG5cclxuICBwcml2YXRlIF9hZGRNdWx0aXJvdXRlKG11bHRpcm91dGU6IFlhbmRleE11bHRpcm91dGVDb21wb25lbnQpOiB2b2lkIHtcclxuICAgIHRoaXMuX3lhbmRleE1hcFNlcnZpY2UuYWRkTXVsdGlyb3V0ZShtdWx0aXJvdXRlLm11bHRpcm91dGVNb2RlbCwgbXVsdGlyb3V0ZS5tdWx0aXJvdXRlT3B0aW9ucyk7XHJcbiAgfVxyXG5cclxuICBwcml2YXRlIF9hZGRHZW9PYmplY3QoZ2VvT2JqZWN0OiBZYW5kZXhHZW9vYmplY3RDb21wb25lbnQpOiB2b2lkIHtcclxuICAgIHRoaXMuX3lhbmRleE1hcFNlcnZpY2UuYWRkR2VvT2JqZWN0KGdlb09iamVjdC5mZWF0dXJlLCBnZW9PYmplY3Qub3B0aW9ucyk7XHJcbiAgfVxyXG5cclxuICBwcml2YXRlIF9hZGRTZWFyY2hDb250cm9sKHNlYXJjaDogWWFuZGV4U2VhcmNoQ29tcG9uZW50KTogdm9pZCB7XHJcbiAgICB0aGlzLl95YW5kZXhNYXBTZXJ2aWNlLmFkZFNlYXJjaENvbnRyb2woc2VhcmNoLnNlYXJjaFJlcXVlc3QsIHNlYXJjaC5wYXJhbWV0ZXJzKTtcclxuICB9XHJcbn1cclxuIl19 |
@@ -8,3 +8,2 @@ /** | ||
function YandexMultirouteComponent() { | ||
this.referencePoints = []; | ||
} | ||
@@ -29,4 +28,6 @@ /** | ||
function () { | ||
if (!this.referencePoints.length) | ||
console.error('Multiroute: referencePoints is required'); | ||
if (!this.referencePoints) { | ||
console.error('Multiroute: referencePoints input is required.'); | ||
this.referencePoints = []; | ||
} | ||
}; | ||
@@ -58,2 +59,2 @@ YandexMultirouteComponent.decorators = [ | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieWFuZGV4LW11bHRpcm91dGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vYW5ndWxhcjgteWFuZGV4LW1hcHMvIiwic291cmNlcyI6WyJsaWIvY29tcG9uZW50cy95YW5kZXgtbXVsdGlyb3V0ZS1jb21wb25lbnQveWFuZGV4LW11bHRpcm91dGUuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUV6RDtJQVVFO1FBSmdCLG9CQUFlLEdBQWUsRUFBRSxDQUFDO0lBSWpDLENBQUM7Ozs7SUFFViw0Q0FBUTs7O0lBQWY7UUFDRSxJQUFJLENBQUMsVUFBVSxFQUFFLENBQUM7SUFDcEIsQ0FBQzs7Ozs7SUFFTyw4Q0FBVTs7OztJQUFsQjtRQUNFLElBQUksQ0FBQyxJQUFJLENBQUMsZUFBZSxDQUFDLE1BQU07WUFBRSxPQUFPLENBQUMsS0FBSyxDQUFDLHlDQUF5QyxDQUFDLENBQUM7SUFDN0YsQ0FBQzs7Z0JBbEJGLFNBQVMsU0FBQztvQkFDVCxRQUFRLEVBQUUsMkJBQTJCO29CQUNyQyxZQUFpRDs7aUJBRWxEOzs7OztrQ0FFRSxLQUFLO2tDQUNMLEtBQUs7b0NBQ0wsS0FBSzs7SUFXUixnQ0FBQztDQUFBLEFBbkJELElBbUJDO1NBZFkseUJBQXlCOzs7SUFDcEMsb0RBQWlEOztJQUNqRCxvREFBcUM7O0lBQ3JDLHNEQUF1QyIsInNvdXJj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Agc3R5bGVVcmxzOiBbJy4veWFuZGV4LW11bHRpcm91dGUuY29tcG9uZW50LnNjc3MnXVxyXG59KVxyXG5leHBvcnQgY2xhc3MgWWFuZGV4TXVsdGlyb3V0ZUNvbXBvbmVudCBpbXBsZW1lbnRzIE9uSW5pdCB7XHJcbiAgQElucHV0KCkgcHVibGljIHJlZmVyZW5jZVBvaW50czogQXJyYXk8YW55PjtcclxuICBASW5wdXQoKSBwdWJsaWMgbXVsdGlyb3V0ZU1vZGVsOiBhbnk7XHJcbiAgQElucHV0KCkgcHVibGljIG11bHRpcm91dGVPcHRpb25zOiBhbnk7XHJcblxyXG4gIGNvbnN0cnVjdG9yKCkgeyB9XHJcblxyXG4gIHB1YmxpYyBuZ09uSW5pdCgpOiB2b2lkIHtcclxuICAgIHRoaXMuX2xvZ0Vycm9ycygpO1xyXG4gIH1cclxuXHJcbiAgcHJpdmF0ZSBfbG9nRXJyb3JzKCk6IHZvaWQge1xyXG4gICAgaWYgKCF0aGlzLnJlZmVyZW5jZVBvaW50cykge1xyXG4gICAgICBjb25zb2xlLmVycm9yKCdNdWx0aXJvdXRlOiByZWZlcmVuY2VQb2ludHMgaW5wdXQgaXMgcmVxdWlyZWQuJyk7XHJcbiAgICAgIHRoaXMucmVmZXJlbmNlUG9pbnRzID0gW107XHJcbiAgICB9XHJcbiAgfVxyXG59XHJcbiJdfQ== |
@@ -8,3 +8,2 @@ /** | ||
function YandexPlacemarkComponent() { | ||
this.geometry = []; | ||
} | ||
@@ -29,4 +28,6 @@ /** | ||
function () { | ||
if (!this.geometry.length) | ||
console.error('Placemark: geometry is required'); | ||
if (!this.geometry) { | ||
console.error('Placemark: geometry input is required.'); | ||
this.geometry = []; | ||
} | ||
}; | ||
@@ -58,2 +59,2 @@ YandexPlacemarkComponent.decorators = [ | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieWFuZGV4LXBsYWNlbWFyay5jb21wb25lbnQuanMiLCJzb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CkgcHVibGljIHBsYWNlbWFya09wdGlvbnM6IGFueTtcclxuXHJcbiAgY29uc3RydWN0b3IoKSB7fVxyXG5cclxuICBwdWJsaWMgbmdPbkluaXQoKTogdm9pZCB7XHJcbiAgICB0aGlzLl9sb2dFcnJvcnMoKTtcclxuICB9XHJcblxyXG4gIHByaXZhdGUgX2xvZ0Vycm9ycygpOiB2b2lkIHtcclxuICAgIGlmICghdGhpcy5nZW9tZXRyeSkge1xyXG4gICAgICBjb25zb2xlLmVycm9yKCdQbGFjZW1hcms6IGdlb21ldHJ5IGlucHV0IGlzIHJlcXVpcmVkLicpO1xyXG4gICAgICB0aGlzLmdlb21ldHJ5ID0gW107XHJcbiAgICB9XHJcbiAgfVxyXG59XHJcbiJdfQ== |
@@ -15,5 +15,13 @@ /** | ||
/** | ||
* Init ymaps script if it's not initiated | ||
* Trigger map subject on script load | ||
*/ | ||
/** | ||
* Init ymaps script if it's not initiated | ||
* Trigger map subject on script load | ||
* @return {?} | ||
*/ | ||
YandexMapService.prototype.initMap = /** | ||
* Init ymaps script if it's not initiated | ||
* Trigger map subject on script load | ||
* @return {?} | ||
@@ -54,2 +62,9 @@ */ | ||
/** | ||
* Create new Map class instance | ||
* @param mapId | ||
* @param state | ||
* @param options | ||
*/ | ||
/** | ||
* Create new Map class instance | ||
* @param {?} mapId | ||
@@ -61,2 +76,3 @@ * @param {?} state | ||
YandexMapService.prototype.createMap = /** | ||
* Create new Map class instance | ||
* @param {?} mapId | ||
@@ -71,2 +87,6 @@ * @param {?} state | ||
/** | ||
* Add objects, controls on map | ||
*/ | ||
/** | ||
* Add objects, controls on map | ||
* @param {?} geometry | ||
@@ -77,3 +97,4 @@ * @param {?} properties | ||
*/ | ||
YandexMapService.prototype.createPlacemark = /** | ||
YandexMapService.prototype.addPlacemark = /** | ||
* Add objects, controls on map | ||
* @param {?} geometry | ||
@@ -93,3 +114,3 @@ * @param {?} properties | ||
*/ | ||
YandexMapService.prototype.createMultiroute = /** | ||
YandexMapService.prototype.addMultiroute = /** | ||
* @param {?} model | ||
@@ -108,3 +129,3 @@ * @param {?} options | ||
*/ | ||
YandexMapService.prototype.createGeoObject = /** | ||
YandexMapService.prototype.addGeoObject = /** | ||
* @param {?} feature | ||
@@ -118,2 +139,30 @@ * @param {?} options | ||
}; | ||
/** | ||
* Create new SearchControl class instance with properies | ||
* If searchRequest is provided -> force search in the current area | ||
* @param request | ||
* @param properties | ||
*/ | ||
/** | ||
* Create new SearchControl class instance with properies | ||
* If searchRequest is provided -> force search in the current area | ||
* @param {?} request | ||
* @param {?} properties | ||
* @return {?} | ||
*/ | ||
YandexMapService.prototype.addSearchControl = /** | ||
* Create new SearchControl class instance with properies | ||
* If searchRequest is provided -> force search in the current area | ||
* @param {?} request | ||
* @param {?} properties | ||
* @return {?} | ||
*/ | ||
function (request, properties) { | ||
/** @type {?} */ | ||
var searchControl = new ymaps.control.SearchControl(properties); | ||
this._map.controls | ||
.add(searchControl); | ||
if (request) | ||
searchControl.search(request); | ||
}; | ||
YandexMapService.decorators = [ | ||
@@ -164,2 +213,2 @@ { type: Injectable, args: [{ | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieWFuZGV4LW1hcC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vYW5ndWxhcjgteWFuZGV4LW1hcHMvIiwic291cmNlcyI6WyJsaWIvc2VydmljZXMveWFuZGV4LW1hcC95YW5kZXgtbWFwLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3JELE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxNQUFNLENBQUM7O0FBSy9CO0lBVUUsMEJBQW9CLFNBQW1CO1FBQW5CLGNBQVMsR0FBVCxTQUFTLENBQVU7UUFOL0Isa0JBQWEsR0FBcUIsS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cclxuICAgKi9cclxuICBwdWJsaWMgYWRkU2VhcmNoQ29udHJvbChyZXF1ZXN0OiBzdHJpbmcsIHByb3BlcnRpZXM6IGFueSk6IHZvaWQge1xyXG4gICAgY29uc3Qgc2VhcmNoQ29udHJvbCA9IG5ldyB5bWFwcy5jb250cm9sLlNlYXJjaENvbnRyb2wocHJvcGVydGllcyk7XHJcblxyXG4gICAgdGhpcy5fbWFwLmNvbnRyb2xzXHJcbiAgICAgIC5hZGQoc2VhcmNoQ29udHJvbCk7XHJcblxyXG4gICAgaWYgKHJlcXVlc3QpIHNlYXJjaENvbnRyb2wuc2VhcmNoKHJlcXVlc3QpO1xyXG4gIH1cclxufVxyXG4iXX0= |
@@ -27,3 +27,3 @@ /** | ||
*/ | ||
IYandexMapService.prototype.createPlacemark = function (geometry, properties, options) { }; | ||
IYandexMapService.prototype.addPlacemark = function (geometry, properties, options) { }; | ||
/** | ||
@@ -34,3 +34,3 @@ * @param {?} model | ||
*/ | ||
IYandexMapService.prototype.createMultiroute = function (model, options) { }; | ||
IYandexMapService.prototype.addMultiroute = function (model, options) { }; | ||
/** | ||
@@ -41,4 +41,10 @@ * @param {?} feature | ||
*/ | ||
IYandexMapService.prototype.createGeoObject = function (feature, options) { }; | ||
IYandexMapService.prototype.addGeoObject = function (feature, options) { }; | ||
/** | ||
* @param {?} request | ||
* @param {?} properties | ||
* @return {?} | ||
*/ | ||
IYandexMapService.prototype.addSearchControl = function (request, properties) { }; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieWFuZGV4LXNlcnZpY2UudHlwZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2FuZ3VsYXI4LXlhbmRleC1tYXBzLyIsInNvdXJjZXMiOlsibGliL3NlcnZpY2VzL3lhbmRleC1tYXAveWFuZGV4LXNlcnZpY2UudHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBRUEsdUNBTUM7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iLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBTdWJqZWN0IH0gZnJvbSAncnhqcyc7XHJcblxyXG5leHBvcnQgaW50ZXJmYWNlIElZYW5kZXhNYXBTZXJ2aWNlIHtcclxuICBpbml0TWFwKCk6IFN1YmplY3Q8Ym9vbGVhbj47XHJcbiAgY3JlYXRlTWFwKG1hcElkOiBzdHJpbmcsIHN0YXRlOiBhbnksIG9wdGlvbnM6IGFueSk6IHZvaWQ7XHJcbiAgYWRkUGxhY2VtYXJrKGdlb21ldHJ5OiBhbnksIHByb3BlcnRpZXM6IGFueSwgb3B0aW9uczogYW55KTogdm9pZDtcclxuICBhZGRNdWx0aXJvdXRlKG1vZGVsOiBhbnksIG9wdGlvbnM6IGFueSk6IHZvaWQ7XHJcbiAgYWRkR2VvT2JqZWN0KGZlYXR1cmU6IGFueSwgb3B0aW9uczogYW55KTogdm9pZDtcclxuICBhZGRTZWFyY2hDb250cm9sKHJlcXVlc3Q6IHN0cmluZywgcHJvcGVydGllczogYW55KTogdm9pZFxyXG59XHJcbiJdfQ== |
@@ -20,2 +20,4 @@ import { Injectable, Injector, ɵɵdefineInjectable, ɵɵinject, INJECTOR, Component, Input, ViewChild, ContentChildren, NgModule } from '@angular/core'; | ||
/** | ||
* Init ymaps script if it's not initiated | ||
* Trigger map subject on script load | ||
* @return {?} | ||
@@ -51,2 +53,3 @@ */ | ||
/** | ||
* Create new Map class instance | ||
* @param {?} mapId | ||
@@ -61,2 +64,3 @@ * @param {?} state | ||
/** | ||
* Add objects, controls on map | ||
* @param {?} geometry | ||
@@ -67,3 +71,3 @@ * @param {?} properties | ||
*/ | ||
createPlacemark(geometry, properties, options) { | ||
addPlacemark(geometry, properties, options) { | ||
this._map.geoObjects | ||
@@ -77,3 +81,3 @@ .add(new ymaps.Placemark(geometry, properties, options)); | ||
*/ | ||
createMultiroute(model, options) { | ||
addMultiroute(model, options) { | ||
this._map.geoObjects | ||
@@ -87,6 +91,21 @@ .add(new ymaps.multiRouter.MultiRoute(model, options)); | ||
*/ | ||
createGeoObject(feature, options) { | ||
addGeoObject(feature, options) { | ||
this._map.geoObjects | ||
.add(new ymaps.GeoObject(feature, options)); | ||
} | ||
/** | ||
* Create new SearchControl class instance with properies | ||
* If searchRequest is provided -> force search in the current area | ||
* @param {?} request | ||
* @param {?} properties | ||
* @return {?} | ||
*/ | ||
addSearchControl(request, properties) { | ||
/** @type {?} */ | ||
const searchControl = new ymaps.control.SearchControl(properties); | ||
this._map.controls | ||
.add(searchControl); | ||
if (request) | ||
searchControl.search(request); | ||
} | ||
} | ||
@@ -109,5 +128,3 @@ YandexMapService.decorators = [ | ||
class YandexPlacemarkComponent { | ||
constructor() { | ||
this.geometry = []; | ||
} | ||
constructor() { } | ||
/** | ||
@@ -124,4 +141,6 @@ * @return {?} | ||
_logErrors() { | ||
if (!this.geometry.length) | ||
console.error('Placemark: geometry is required'); | ||
if (!this.geometry) { | ||
console.error('Placemark: geometry input is required.'); | ||
this.geometry = []; | ||
} | ||
} | ||
@@ -149,5 +168,3 @@ } | ||
class YandexMultirouteComponent { | ||
constructor() { | ||
this.referencePoints = []; | ||
} | ||
constructor() { } | ||
/** | ||
@@ -164,4 +181,6 @@ * @return {?} | ||
_logErrors() { | ||
if (!this.referencePoints.length) | ||
console.error('Multiroute: referencePoints is required'); | ||
if (!this.referencePoints) { | ||
console.error('Multiroute: referencePoints input is required.'); | ||
this.referencePoints = []; | ||
} | ||
} | ||
@@ -193,3 +212,15 @@ } | ||
*/ | ||
ngOnInit() { } | ||
ngOnInit() { | ||
this._logErrors(); | ||
} | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
_logErrors() { | ||
if (!this.feature) { | ||
console.error('GeoObjects: feature input is required.'); | ||
this.feature = {}; | ||
} | ||
} | ||
} | ||
@@ -214,2 +245,27 @@ YandexGeoobjectComponent.decorators = [ | ||
*/ | ||
class YandexSearchComponent { | ||
constructor() { } | ||
/** | ||
* @return {?} | ||
*/ | ||
ngOnInit() { } | ||
} | ||
YandexSearchComponent.decorators = [ | ||
{ type: Component, args: [{ | ||
selector: 'angular-yandex-search', | ||
template: "", | ||
styles: [""] | ||
}] } | ||
]; | ||
/** @nocollapse */ | ||
YandexSearchComponent.ctorParameters = () => []; | ||
YandexSearchComponent.propDecorators = { | ||
searchRequest: [{ type: Input }], | ||
parameters: [{ type: Input }] | ||
}; | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
class YandexMapComponent { | ||
@@ -221,5 +277,5 @@ /** | ||
this._yandexMapService = _yandexMapService; | ||
this.center = []; | ||
this.zoom = 10; | ||
this.mapState = {}; | ||
this.mapOptions = {}; | ||
} | ||
@@ -239,4 +295,6 @@ /** | ||
_logErrors() { | ||
if (!this.center.length) | ||
console.error('Map: center is required'); | ||
if (!this.center) { | ||
console.error('Map: center input is required.'); | ||
this.center = []; | ||
} | ||
} | ||
@@ -297,3 +355,3 @@ /** | ||
(placemark) => { | ||
this._setPlacemarks(placemark); | ||
this._addPlacemark(placemark); | ||
})); | ||
@@ -305,3 +363,3 @@ this.multiroutes.forEach((/** | ||
(multiroute) => { | ||
this._createMultiroute(multiroute); | ||
this._addMultiroute(multiroute); | ||
})); | ||
@@ -313,7 +371,9 @@ this.geoObjects.forEach((/** | ||
(geoObject) => { | ||
this._createGeoObject(geoObject); | ||
this._addGeoObject(geoObject); | ||
})); | ||
if (this.searchControl.first) | ||
this._addSearchControl(this.searchControl.first); | ||
} | ||
/** | ||
* Add objects with params in map.geoObjects | ||
* Add objects, controls on map | ||
* @private | ||
@@ -323,4 +383,4 @@ * @param {?} placemark | ||
*/ | ||
_setPlacemarks(placemark) { | ||
this._yandexMapService.createPlacemark(placemark.geometry, placemark.placemarkProperties, placemark.placemarkOptions); | ||
_addPlacemark(placemark) { | ||
this._yandexMapService.addPlacemark(placemark.geometry, placemark.placemarkProperties, placemark.placemarkOptions); | ||
} | ||
@@ -332,4 +392,4 @@ /** | ||
*/ | ||
_createMultiroute(multiroute) { | ||
this._yandexMapService.createMultiroute(multiroute.multirouteModel, multiroute.multirouteOptions); | ||
_addMultiroute(multiroute) { | ||
this._yandexMapService.addMultiroute(multiroute.multirouteModel, multiroute.multirouteOptions); | ||
} | ||
@@ -341,5 +401,13 @@ /** | ||
*/ | ||
_createGeoObject(geoObject) { | ||
this._yandexMapService.createGeoObject(geoObject.feature, geoObject.options); | ||
_addGeoObject(geoObject) { | ||
this._yandexMapService.addGeoObject(geoObject.feature, geoObject.options); | ||
} | ||
/** | ||
* @private | ||
* @param {?} search | ||
* @return {?} | ||
*/ | ||
_addSearchControl(search) { | ||
this._yandexMapService.addSearchControl(search.searchRequest, search.parameters); | ||
} | ||
} | ||
@@ -362,2 +430,3 @@ YandexMapComponent.decorators = [ | ||
geoObjects: [{ type: ContentChildren, args: [YandexGeoobjectComponent,] }], | ||
searchControl: [{ type: ContentChildren, args: [YandexSearchComponent,] }], | ||
center: [{ type: Input }], | ||
@@ -393,3 +462,4 @@ zoom: [{ type: Input }], | ||
YandexMultirouteComponent, | ||
YandexGeoobjectComponent | ||
YandexGeoobjectComponent, | ||
YandexSearchComponent | ||
], | ||
@@ -403,3 +473,4 @@ imports: [ | ||
YandexMultirouteComponent, | ||
YandexGeoobjectComponent | ||
YandexGeoobjectComponent, | ||
YandexSearchComponent | ||
] | ||
@@ -409,3 +480,3 @@ },] } | ||
export { AngularYandexMapsModule, YandexMapComponent as ɵa, YandexPlacemarkComponent as ɵb, YandexMultirouteComponent as ɵc, YandexGeoobjectComponent as ɵd, YandexMapService as ɵe }; | ||
export { AngularYandexMapsModule, YandexMapComponent as ɵa, YandexPlacemarkComponent as ɵb, YandexMultirouteComponent as ɵc, YandexGeoobjectComponent as ɵd, YandexSearchComponent as ɵe, YandexMapService as ɵf }; | ||
//# sourceMappingURL=angular8-yandex-maps.js.map |
@@ -17,5 +17,13 @@ import { Injectable, Injector, ɵɵdefineInjectable, ɵɵinject, INJECTOR, Component, Input, ViewChild, ContentChildren, NgModule } from '@angular/core'; | ||
/** | ||
* Init ymaps script if it's not initiated | ||
* Trigger map subject on script load | ||
*/ | ||
/** | ||
* Init ymaps script if it's not initiated | ||
* Trigger map subject on script load | ||
* @return {?} | ||
*/ | ||
YandexMapService.prototype.initMap = /** | ||
* Init ymaps script if it's not initiated | ||
* Trigger map subject on script load | ||
* @return {?} | ||
@@ -56,2 +64,9 @@ */ | ||
/** | ||
* Create new Map class instance | ||
* @param mapId | ||
* @param state | ||
* @param options | ||
*/ | ||
/** | ||
* Create new Map class instance | ||
* @param {?} mapId | ||
@@ -63,2 +78,3 @@ * @param {?} state | ||
YandexMapService.prototype.createMap = /** | ||
* Create new Map class instance | ||
* @param {?} mapId | ||
@@ -73,2 +89,6 @@ * @param {?} state | ||
/** | ||
* Add objects, controls on map | ||
*/ | ||
/** | ||
* Add objects, controls on map | ||
* @param {?} geometry | ||
@@ -79,3 +99,4 @@ * @param {?} properties | ||
*/ | ||
YandexMapService.prototype.createPlacemark = /** | ||
YandexMapService.prototype.addPlacemark = /** | ||
* Add objects, controls on map | ||
* @param {?} geometry | ||
@@ -95,3 +116,3 @@ * @param {?} properties | ||
*/ | ||
YandexMapService.prototype.createMultiroute = /** | ||
YandexMapService.prototype.addMultiroute = /** | ||
* @param {?} model | ||
@@ -110,3 +131,3 @@ * @param {?} options | ||
*/ | ||
YandexMapService.prototype.createGeoObject = /** | ||
YandexMapService.prototype.addGeoObject = /** | ||
* @param {?} feature | ||
@@ -120,2 +141,30 @@ * @param {?} options | ||
}; | ||
/** | ||
* Create new SearchControl class instance with properies | ||
* If searchRequest is provided -> force search in the current area | ||
* @param request | ||
* @param properties | ||
*/ | ||
/** | ||
* Create new SearchControl class instance with properies | ||
* If searchRequest is provided -> force search in the current area | ||
* @param {?} request | ||
* @param {?} properties | ||
* @return {?} | ||
*/ | ||
YandexMapService.prototype.addSearchControl = /** | ||
* Create new SearchControl class instance with properies | ||
* If searchRequest is provided -> force search in the current area | ||
* @param {?} request | ||
* @param {?} properties | ||
* @return {?} | ||
*/ | ||
function (request, properties) { | ||
/** @type {?} */ | ||
var searchControl = new ymaps.control.SearchControl(properties); | ||
this._map.controls | ||
.add(searchControl); | ||
if (request) | ||
searchControl.search(request); | ||
}; | ||
YandexMapService.decorators = [ | ||
@@ -140,3 +189,2 @@ { type: Injectable, args: [{ | ||
function YandexPlacemarkComponent() { | ||
this.geometry = []; | ||
} | ||
@@ -161,4 +209,6 @@ /** | ||
function () { | ||
if (!this.geometry.length) | ||
console.error('Placemark: geometry is required'); | ||
if (!this.geometry) { | ||
console.error('Placemark: geometry input is required.'); | ||
this.geometry = []; | ||
} | ||
}; | ||
@@ -188,3 +238,2 @@ YandexPlacemarkComponent.decorators = [ | ||
function YandexMultirouteComponent() { | ||
this.referencePoints = []; | ||
} | ||
@@ -209,4 +258,6 @@ /** | ||
function () { | ||
if (!this.referencePoints.length) | ||
console.error('Multiroute: referencePoints is required'); | ||
if (!this.referencePoints) { | ||
console.error('Multiroute: referencePoints input is required.'); | ||
this.referencePoints = []; | ||
} | ||
}; | ||
@@ -243,3 +294,19 @@ YandexMultirouteComponent.decorators = [ | ||
*/ | ||
function () { }; | ||
function () { | ||
this._logErrors(); | ||
}; | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
YandexGeoobjectComponent.prototype._logErrors = /** | ||
* @private | ||
* @return {?} | ||
*/ | ||
function () { | ||
if (!this.feature) { | ||
console.error('GeoObjects: feature input is required.'); | ||
this.feature = {}; | ||
} | ||
}; | ||
YandexGeoobjectComponent.decorators = [ | ||
@@ -265,8 +332,38 @@ { type: Component, args: [{ | ||
*/ | ||
var YandexSearchComponent = /** @class */ (function () { | ||
function YandexSearchComponent() { | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
YandexSearchComponent.prototype.ngOnInit = /** | ||
* @return {?} | ||
*/ | ||
function () { }; | ||
YandexSearchComponent.decorators = [ | ||
{ type: Component, args: [{ | ||
selector: 'angular-yandex-search', | ||
template: "", | ||
styles: [""] | ||
}] } | ||
]; | ||
/** @nocollapse */ | ||
YandexSearchComponent.ctorParameters = function () { return []; }; | ||
YandexSearchComponent.propDecorators = { | ||
searchRequest: [{ type: Input }], | ||
parameters: [{ type: Input }] | ||
}; | ||
return YandexSearchComponent; | ||
}()); | ||
/** | ||
* @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.center = []; | ||
this.zoom = 10; | ||
this.mapState = {}; | ||
this.mapOptions = {}; | ||
} | ||
@@ -293,4 +390,6 @@ /** | ||
function () { | ||
if (!this.center.length) | ||
console.error('Map: center is required'); | ||
if (!this.center) { | ||
console.error('Map: center input is required.'); | ||
this.center = []; | ||
} | ||
}; | ||
@@ -373,3 +472,3 @@ /** | ||
function (placemark) { | ||
_this._setPlacemarks(placemark); | ||
_this._addPlacemark(placemark); | ||
})); | ||
@@ -381,3 +480,3 @@ this.multiroutes.forEach((/** | ||
function (multiroute) { | ||
_this._createMultiroute(multiroute); | ||
_this._addMultiroute(multiroute); | ||
})); | ||
@@ -389,10 +488,12 @@ this.geoObjects.forEach((/** | ||
function (geoObject) { | ||
_this._createGeoObject(geoObject); | ||
_this._addGeoObject(geoObject); | ||
})); | ||
if (this.searchControl.first) | ||
this._addSearchControl(this.searchControl.first); | ||
}; | ||
/** | ||
* Add objects with params in map.geoObjects | ||
* Add objects, controls on map | ||
*/ | ||
/** | ||
* Add objects with params in map.geoObjects | ||
* Add objects, controls on map | ||
* @private | ||
@@ -402,4 +503,4 @@ * @param {?} placemark | ||
*/ | ||
YandexMapComponent.prototype._setPlacemarks = /** | ||
* Add objects with params in map.geoObjects | ||
YandexMapComponent.prototype._addPlacemark = /** | ||
* Add objects, controls on map | ||
* @private | ||
@@ -410,3 +511,3 @@ * @param {?} placemark | ||
function (placemark) { | ||
this._yandexMapService.createPlacemark(placemark.geometry, placemark.placemarkProperties, placemark.placemarkOptions); | ||
this._yandexMapService.addPlacemark(placemark.geometry, placemark.placemarkProperties, placemark.placemarkOptions); | ||
}; | ||
@@ -418,3 +519,3 @@ /** | ||
*/ | ||
YandexMapComponent.prototype._createMultiroute = /** | ||
YandexMapComponent.prototype._addMultiroute = /** | ||
* @private | ||
@@ -425,3 +526,3 @@ * @param {?} multiroute | ||
function (multiroute) { | ||
this._yandexMapService.createMultiroute(multiroute.multirouteModel, multiroute.multirouteOptions); | ||
this._yandexMapService.addMultiroute(multiroute.multirouteModel, multiroute.multirouteOptions); | ||
}; | ||
@@ -433,3 +534,3 @@ /** | ||
*/ | ||
YandexMapComponent.prototype._createGeoObject = /** | ||
YandexMapComponent.prototype._addGeoObject = /** | ||
* @private | ||
@@ -440,4 +541,17 @@ * @param {?} geoObject | ||
function (geoObject) { | ||
this._yandexMapService.createGeoObject(geoObject.feature, geoObject.options); | ||
this._yandexMapService.addGeoObject(geoObject.feature, geoObject.options); | ||
}; | ||
/** | ||
* @private | ||
* @param {?} search | ||
* @return {?} | ||
*/ | ||
YandexMapComponent.prototype._addSearchControl = /** | ||
* @private | ||
* @param {?} search | ||
* @return {?} | ||
*/ | ||
function (search) { | ||
this._yandexMapService.addSearchControl(search.searchRequest, search.parameters); | ||
}; | ||
YandexMapComponent.decorators = [ | ||
@@ -459,2 +573,3 @@ { type: Component, args: [{ | ||
geoObjects: [{ type: ContentChildren, args: [YandexGeoobjectComponent,] }], | ||
searchControl: [{ type: ContentChildren, args: [YandexSearchComponent,] }], | ||
center: [{ type: Input }], | ||
@@ -497,3 +612,4 @@ zoom: [{ type: Input }], | ||
YandexMultirouteComponent, | ||
YandexGeoobjectComponent | ||
YandexGeoobjectComponent, | ||
YandexSearchComponent | ||
], | ||
@@ -507,3 +623,4 @@ imports: [ | ||
YandexMultirouteComponent, | ||
YandexGeoobjectComponent | ||
YandexGeoobjectComponent, | ||
YandexSearchComponent | ||
] | ||
@@ -515,3 +632,3 @@ },] } | ||
export { AngularYandexMapsModule, YandexMapComponent as ɵa, YandexPlacemarkComponent as ɵb, YandexMultirouteComponent as ɵc, YandexGeoobjectComponent as ɵd, YandexMapService as ɵe }; | ||
export { AngularYandexMapsModule, YandexMapComponent as ɵa, YandexPlacemarkComponent as ɵb, YandexMultirouteComponent as ɵc, YandexGeoobjectComponent as ɵd, YandexSearchComponent as ɵe, YandexMapService as ɵf }; | ||
//# sourceMappingURL=angular8-yandex-maps.js.map |
@@ -7,2 +7,3 @@ import { OnInit } from '@angular/core'; | ||
ngOnInit(): void; | ||
private _logErrors; | ||
} |
@@ -6,2 +6,3 @@ import { OnInit, ElementRef, QueryList } from '@angular/core'; | ||
import { YandexGeoobjectComponent } from '../yandex-geoobject-component/yandex-geoobject.component'; | ||
import { YandexSearchComponent } from '../yandex-search-component/yandex-search.component'; | ||
export declare class YandexMapComponent implements OnInit { | ||
@@ -13,2 +14,3 @@ private _yandexMapService; | ||
geoObjects: QueryList<YandexGeoobjectComponent>; | ||
searchControl: QueryList<YandexSearchComponent>; | ||
center: Array<number>; | ||
@@ -30,7 +32,8 @@ zoom: number; | ||
/** | ||
* Add objects with params in map.geoObjects | ||
* Add objects, controls on map | ||
*/ | ||
private _setPlacemarks; | ||
private _createMultiroute; | ||
private _createGeoObject; | ||
private _addPlacemark; | ||
private _addMultiroute; | ||
private _addGeoObject; | ||
private _addSearchControl; | ||
} |
@@ -12,8 +12,28 @@ import { Injector } from '@angular/core'; | ||
constructor(_injector: Injector); | ||
/** | ||
* Init ymaps script if it's not initiated | ||
* Trigger map subject on script load | ||
*/ | ||
initMap(): Subject<boolean>; | ||
private _loadScript; | ||
/** | ||
* Create new Map class instance | ||
* @param mapId | ||
* @param state | ||
* @param options | ||
*/ | ||
createMap(mapId: string, state: any, options: any): void; | ||
createPlacemark(geometry: any, properties: any, options: any): void; | ||
createMultiroute(model: any, options: any): void; | ||
createGeoObject(feature: any, options: any): void; | ||
/** | ||
* Add objects, controls on map | ||
*/ | ||
addPlacemark(geometry: any, properties: any, options: any): void; | ||
addMultiroute(model: any, options: any): void; | ||
addGeoObject(feature: any, options: any): void; | ||
/** | ||
* Create new SearchControl class instance with properies | ||
* If searchRequest is provided -> force search in the current area | ||
* @param request | ||
* @param properties | ||
*/ | ||
addSearchControl(request: string, properties: any): void; | ||
} |
@@ -5,5 +5,6 @@ import { Subject } from 'rxjs'; | ||
createMap(mapId: string, state: any, options: any): void; | ||
createPlacemark(geometry: any, properties: any, options: any): void; | ||
createMultiroute(model: any, options: any): void; | ||
createGeoObject(feature: any, options: any): void; | ||
addPlacemark(geometry: any, properties: any, options: any): void; | ||
addMultiroute(model: any, options: any): void; | ||
addGeoObject(feature: any, options: any): void; | ||
addSearchControl(request: string, properties: any): void; | ||
} |
{ | ||
"name": "angular8-yandex-maps", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Angular module for Yandex Maps", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -8,6 +8,9 @@ | ||
- [Map with custom placemark](https://stackblitz.com/edit/custom-placemark) | ||
- [Custom multiroute (need API key)](https://stackblitz.com/edit/multiroute) | ||
- [Custom placemark](https://stackblitz.com/edit/custom-placemark) | ||
- [Multiroute (need API key)](https://stackblitz.com/edit/multiroute) | ||
- [Rectangle](https://stackblitz.com/edit/rectangle) | ||
- [Polygon](https://stackblitz.com/edit/geoobject-polygon) | ||
- [Circle](https://stackblitz.com/edit/geoobject-circle) | ||
- [Custom search](https://stackblitz.com/edit/custom-searchcontrol) | ||
- [Search for organizations](https://stackblitz.com/edit/search-for-organizations) | ||
@@ -104,7 +107,17 @@ ## Installation | ||
## Search | ||
Available inputs: | ||
Optional: | ||
- searchRequest: string (use this for force search, [Example](https://stackblitz.com/edit/search-for-organizations)) | ||
- parameters: [Interface](https://tech.yandex.ru/maps/jsapi/doc/2.1/ref/reference/control.SearchControl-docpage/#control.SearchControl__param-parameters) | ||
``` | ||
<angular-yandex-search [parameters]="{ options: { float: 'right' } }"></angular-yandex-search> | ||
``` | ||
## Changelog | ||
[CHANGELOG](https://github.com/ddubrava/angular-yandex-maps/blob/develop/CHANGELOG.md) | ||
[CHANGELOG](https://github.com/ddubrava/angular-yandex-maps/blob/develop/CHANGELOG.md) | ||
## License | ||
[MIT](https://github.com/ddubrava/angular-yandex-maps/blob/develop/LICENSE.md) |
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
250365
41
3211
121