angular8-yandex-maps
Advanced tools
Comparing version 10.1.1 to 10.2.0
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"AngularYandexMapsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":11,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"YaClustererComponent"},{"__symbolic":"reference","name":"YaControlComponent"},{"__symbolic":"reference","name":"YaGeoObjectComponent"},{"__symbolic":"reference","name":"YaMapComponent"},{"__symbolic":"reference","name":"YaMultirouteComponent"},{"__symbolic":"reference","name":"YaPanoramaComponent"},{"__symbolic":"reference","name":"YaPlacemarkComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":22,"character":4}],"exports":[{"__symbolic":"reference","name":"YaClustererComponent"},{"__symbolic":"reference","name":"YaControlComponent"},{"__symbolic":"reference","name":"YaGeoObjectComponent"},{"__symbolic":"reference","name":"YaMapComponent"},{"__symbolic":"reference","name":"YaMultirouteComponent"},{"__symbolic":"reference","name":"YaPanoramaComponent"},{"__symbolic":"reference","name":"YaPlacemarkComponent"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"value":{"ngModule":{"__symbolic":"reference","name":"AngularYandexMapsModule"},"providers":[{"provide":{"__symbolic":"reference","name":"YA_MAP_CONFIG"},"useValue":{"__symbolic":"reference","name":"config"}}]}}}},"IConfig":{"__symbolic":"interface"},"ILoadEvent":{"__symbolic":"interface"},"IEvent":{"__symbolic":"interface"},"YA_MAP_CONFIG":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":67,"character":33},"arguments":["YA_MAP_CONFIG"]},"ScriptService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":19,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":27,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":27,"character":17},"arguments":[{"__symbolic":"reference","name":"YA_MAP_CONFIG"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":28,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":28,"character":12}]}]],"parameters":[{"__symbolic":"error","message":"Could not resolve type","line":27,"character":47,"context":{"typeName":"Partial"},"module":"./lib/services/script/script.service"},{"__symbolic":"error","message":"Could not resolve type","line":28,"character":40,"context":{"typeName":"Document"},"module":"./lib/services/script/script.service"}]}],"initScript":[{"__symbolic":"method"}],"_setSource":[{"__symbolic":"method"}],"_convertIntoQueryParams":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"YaClustererComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":29,"character":1},"arguments":[{"selector":"ya-clusterer","template":"","styles":[""]}]}],"members":{"placemarks":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":35,"character":3},"arguments":[{"__symbolic":"reference","name":"YaPlacemarkComponent"}]}]}],"geoObjects":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":36,"character":3},"arguments":[{"__symbolic":"reference","name":"YaGeoObjectComponent"}]}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":42,"character":3}}]}],"load":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":47,"character":3}}]}],"hint":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":51,"character":3}}]}],"mapChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":55,"character":3}}]}],"optionsChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":59,"character":3}}]}],"parentChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":63,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnChanges":[{"__symbolic":"method"}],"_configClusterer":[{"__symbolic":"method"}],"initClusterer":[{"__symbolic":"method"}],"_emitEvents":[{"__symbolic":"method"}]}},"YaControlComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":16,"character":1},"arguments":[{"selector":"ya-control","template":"","styles":[""]}]}],"members":{"type":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":3}}]}],"parameters":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":31,"character":3}}]}],"load":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":36,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}],"_logErrors":[{"__symbolic":"method"}],"initControl":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"_configControl":[{"__symbolic":"method"}]}},"YaGeoObjectComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":20,"character":1},"arguments":[{"selector":"ya-geoobject","template":"","styles":[""]}]}],"members":{"feature":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":30,"character":3}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":35,"character":3}}]}],"load":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":40,"character":3}}]}],"baloon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":44,"character":3}}]}],"yaclick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":48,"character":3}}]}],"drag":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":52,"character":3}}]}],"hint":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":56,"character":3}}]}],"mouse":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":60,"character":3}}]}],"multitouch":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":64,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"_configGeoObject":[{"__symbolic":"method"}],"_setFeature":[{"__symbolic":"method"}],"_logErrors":[{"__symbolic":"method"}],"initGeoObject":[{"__symbolic":"method"}],"_emitEvents":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"YaMapComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":30,"character":1},"arguments":[{"selector":"ya-map","template":"<div #container></div>\r\n","styles":[""]}]}],"members":{"mapContainer":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":37,"character":3},"arguments":["container"]}]}],"placemarks":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":40,"character":3},"arguments":[{"__symbolic":"reference","name":"YaPlacemarkComponent"}]}]}],"multiroutes":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":41,"character":3},"arguments":[{"__symbolic":"reference","name":"YaMultirouteComponent"}]}]}],"geoObjects":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":42,"character":3},"arguments":[{"__symbolic":"reference","name":"YaGeoObjectComponent"}]}]}],"controls":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":43,"character":3},"arguments":[{"__symbolic":"reference","name":"YaControlComponent"}]}]}],"clusterers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":44,"character":3},"arguments":[{"__symbolic":"reference","name":"YaClustererComponent"}]}]}],"onlyInstance":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":50,"character":3}}]}],"center":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":54,"character":3}}]}],"zoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":58,"character":3}}]}],"state":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":63,"character":3}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":68,"character":3}}]}],"load":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":73,"character":3}}]}],"action":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":77,"character":3}}]}],"baloon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":81,"character":3}}]}],"yaclick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":85,"character":3}}]}],"hint":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":89,"character":3}}]}],"mouse":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":93,"character":3}}]}],"multitouch":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":97,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ScriptService"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"_configMap":[{"__symbolic":"method"}],"_setState":[{"__symbolic":"method"}],"_logErrors":[{"__symbolic":"method"}],"_createMap":[{"__symbolic":"method"}],"_initObjects":[{"__symbolic":"method"}],"_emitEvents":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"YaMultirouteComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":17,"character":1},"arguments":[{"selector":"ya-multiroute","template":"","styles":[""]}]}],"members":{"referencePoints":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":3}}]}],"model":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":31,"character":3}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":37,"character":3}}]}],"load":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":42,"character":3}}]}],"activeroutechange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":46,"character":3}}]}],"baloon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":50,"character":3}}]}],"yaclick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":54,"character":3}}]}],"mouse":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":58,"character":3}}]}],"multitouch":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":62,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"_configMultiroute":[{"__symbolic":"method"}],"_setModel":[{"__symbolic":"method"}],"_logErrors":[{"__symbolic":"method"}],"initMultiroute":[{"__symbolic":"method"}],"_emitEvents":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"YaPanoramaComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":22,"character":1},"arguments":[{"selector":"ya-panorama","template":"<div #container></div>\r\n","styles":[""]}]}],"members":{"panoramaContainer":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":28,"character":3},"arguments":["container"]}]}],"point":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3}}]}],"layer":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":37,"character":3}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":42,"character":3}}]}],"load":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":47,"character":3}}]}],"direction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":51,"character":3}}]}],"fullscreen":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":55,"character":3}}]}],"marker":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":59,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ScriptService"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"_configPanorama":[{"__symbolic":"method"}],"_logErrors":[{"__symbolic":"method"}],"_createPanorama":[{"__symbolic":"method"}],"emitEvents":[{"__symbolic":"method"}]}},"YaPlacemarkComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":18,"character":1},"arguments":[{"selector":"ya-placemark","template":"","styles":[""]}]}],"members":{"geometry":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":3}}]}],"properties":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":32,"character":3}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":37,"character":3}}]}],"load":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":42,"character":3}}]}],"baloon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":46,"character":3}}]}],"yaclick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":50,"character":3}}]}],"drag":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":54,"character":3}}]}],"hint":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":58,"character":3}}]}],"mouse":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":62,"character":3}}]}],"multitouch":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":66,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"_configPlacemark":[{"__symbolic":"method"}],"_logErrors":[{"__symbolic":"method"}],"initPlacemark":[{"__symbolic":"method"}],"_emitEvents":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}},"origins":{"AngularYandexMapsModule":"./lib/angular-yandex-maps.module","IConfig":"./lib/models/models","ILoadEvent":"./lib/models/models","IEvent":"./lib/models/models","YA_MAP_CONFIG":"./lib/models/models","ScriptService":"./lib/services/script/script.service","YaClustererComponent":"./lib/components/ya-clusterer/ya-clusterer.component","YaControlComponent":"./lib/components/ya-control/ya-control.component","YaGeoObjectComponent":"./lib/components/ya-geoobject/ya-geoobject.component","YaMapComponent":"./lib/components/ya-map/ya-map.component","YaMultirouteComponent":"./lib/components/ya-multiroute/ya-multiroute.component","YaPanoramaComponent":"./lib/components/ya-panorama/ya-panorama.component","YaPlacemarkComponent":"./lib/components/ya-placemark/ya-placemark.component"},"importAs":"angular8-yandex-maps"} | ||
{"__symbolic":"module","version":4,"metadata":{"AngularYandexMapsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":11,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"YaClustererComponent"},{"__symbolic":"reference","name":"YaControlComponent"},{"__symbolic":"reference","name":"YaGeoObjectComponent"},{"__symbolic":"reference","name":"YaMapComponent"},{"__symbolic":"reference","name":"YaMultirouteComponent"},{"__symbolic":"reference","name":"YaPanoramaComponent"},{"__symbolic":"reference","name":"YaPlacemarkComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":22,"character":4}],"exports":[{"__symbolic":"reference","name":"YaClustererComponent"},{"__symbolic":"reference","name":"YaControlComponent"},{"__symbolic":"reference","name":"YaGeoObjectComponent"},{"__symbolic":"reference","name":"YaMapComponent"},{"__symbolic":"reference","name":"YaMultirouteComponent"},{"__symbolic":"reference","name":"YaPanoramaComponent"},{"__symbolic":"reference","name":"YaPlacemarkComponent"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"value":{"ngModule":{"__symbolic":"reference","name":"AngularYandexMapsModule"},"providers":[{"provide":{"__symbolic":"reference","name":"YA_MAP_CONFIG"},"useValue":{"__symbolic":"reference","name":"config"}}]}}}},"IConfig":{"__symbolic":"interface"},"ILoadEvent":{"__symbolic":"interface"},"IEvent":{"__symbolic":"interface"},"YA_MAP_CONFIG":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":67,"character":33},"arguments":["YA_MAP_CONFIG"]},"ScriptService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":19,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":27,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":27,"character":17},"arguments":[{"__symbolic":"reference","name":"YA_MAP_CONFIG"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":28,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":28,"character":12}]}]],"parameters":[{"__symbolic":"error","message":"Could not resolve type","line":27,"character":47,"context":{"typeName":"Partial"},"module":"./lib/services/script/script.service"},{"__symbolic":"error","message":"Could not resolve type","line":28,"character":40,"context":{"typeName":"Document"},"module":"./lib/services/script/script.service"}]}],"initScript":[{"__symbolic":"method"}],"_setSource":[{"__symbolic":"method"}],"_convertIntoQueryParams":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"YaClustererComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":31,"character":1},"arguments":[{"selector":"ya-clusterer","template":"","styles":[""]}]}],"members":{"placemarks":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":37,"character":3},"arguments":[{"__symbolic":"reference","name":"YaPlacemarkComponent"}]}]}],"geoObjects":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":38,"character":3},"arguments":[{"__symbolic":"reference","name":"YaGeoObjectComponent"}]}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":44,"character":3}}]}],"load":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":49,"character":3}}]}],"hint":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":53,"character":3}}]}],"mapChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":57,"character":3}}]}],"optionsChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":61,"character":3}}]}],"parentChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":65,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnChanges":[{"__symbolic":"method"}],"_configClusterer":[{"__symbolic":"method"}],"initClusterer":[{"__symbolic":"method"}],"_addEventListeners":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"YaControlComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":16,"character":1},"arguments":[{"selector":"ya-control","template":"","styles":[""]}]}],"members":{"type":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":3}}]}],"parameters":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":31,"character":3}}]}],"load":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":36,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}],"_logErrors":[{"__symbolic":"method"}],"initControl":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"_configControl":[{"__symbolic":"method"}]}},"YaGeoObjectComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":20,"character":1},"arguments":[{"selector":"ya-geoobject","template":"","styles":[""]}]}],"members":{"feature":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":30,"character":3}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":35,"character":3}}]}],"load":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":40,"character":3}}]}],"baloon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":44,"character":3}}]}],"yaclick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":48,"character":3}}]}],"drag":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":52,"character":3}}]}],"hint":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":56,"character":3}}]}],"mouse":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":60,"character":3}}]}],"multitouch":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":64,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"_configGeoObject":[{"__symbolic":"method"}],"_setFeature":[{"__symbolic":"method"}],"_logErrors":[{"__symbolic":"method"}],"initGeoObject":[{"__symbolic":"method"}],"_addEventListeners":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"YaMapComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":30,"character":1},"arguments":[{"selector":"ya-map","template":"<div #container></div>\r\n","styles":[""]}]}],"members":{"mapContainer":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":37,"character":3},"arguments":["container"]}]}],"placemarks":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":40,"character":3},"arguments":[{"__symbolic":"reference","name":"YaPlacemarkComponent"}]}]}],"multiroutes":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":41,"character":3},"arguments":[{"__symbolic":"reference","name":"YaMultirouteComponent"}]}]}],"geoObjects":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":42,"character":3},"arguments":[{"__symbolic":"reference","name":"YaGeoObjectComponent"}]}]}],"controls":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":43,"character":3},"arguments":[{"__symbolic":"reference","name":"YaControlComponent"}]}]}],"clusterers":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":44,"character":3},"arguments":[{"__symbolic":"reference","name":"YaClustererComponent"}]}]}],"onlyInstance":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":50,"character":3}}]}],"center":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":54,"character":3}}]}],"zoom":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":58,"character":3}}]}],"state":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":63,"character":3}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":68,"character":3}}]}],"load":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":73,"character":3}}]}],"action":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":77,"character":3}}]}],"baloon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":81,"character":3}}]}],"yaclick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":85,"character":3}}]}],"hint":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":89,"character":3}}]}],"mouse":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":93,"character":3}}]}],"multitouch":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":97,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ScriptService"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"_configMap":[{"__symbolic":"method"}],"_setState":[{"__symbolic":"method"}],"_logErrors":[{"__symbolic":"method"}],"_createMap":[{"__symbolic":"method"}],"_initObjects":[{"__symbolic":"method"}],"_addEventListeners":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"YaMultirouteComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":17,"character":1},"arguments":[{"selector":"ya-multiroute","template":"","styles":[""]}]}],"members":{"referencePoints":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":3}}]}],"model":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":31,"character":3}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":37,"character":3}}]}],"load":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":42,"character":3}}]}],"activeroutechange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":46,"character":3}}]}],"baloon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":50,"character":3}}]}],"yaclick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":54,"character":3}}]}],"mouse":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":58,"character":3}}]}],"multitouch":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":62,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"_configMultiroute":[{"__symbolic":"method"}],"_setModel":[{"__symbolic":"method"}],"_logErrors":[{"__symbolic":"method"}],"initMultiroute":[{"__symbolic":"method"}],"_addEventListeners":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"YaPanoramaComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":22,"character":1},"arguments":[{"selector":"ya-panorama","template":"<div #container></div>\r\n","styles":[""]}]}],"members":{"panoramaContainer":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":28,"character":3},"arguments":["container"]}]}],"point":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3}}]}],"layer":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":37,"character":3}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":42,"character":3}}]}],"load":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":47,"character":3}}]}],"direction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":51,"character":3}}]}],"fullscreen":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":55,"character":3}}]}],"marker":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":59,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ScriptService"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"_configPanorama":[{"__symbolic":"method"}],"_logErrors":[{"__symbolic":"method"}],"_createPanorama":[{"__symbolic":"method"}],"_addEventListeners":[{"__symbolic":"method"}]}},"YaPlacemarkComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":18,"character":1},"arguments":[{"selector":"ya-placemark","template":"","styles":[""]}]}],"members":{"geometry":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":3}}]}],"properties":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":32,"character":3}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":37,"character":3}}]}],"load":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":42,"character":3}}]}],"baloon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":46,"character":3}}]}],"yaclick":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":50,"character":3}}]}],"drag":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":54,"character":3}}]}],"hint":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":58,"character":3}}]}],"mouse":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":62,"character":3}}]}],"multitouch":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":66,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"_configPlacemark":[{"__symbolic":"method"}],"_logErrors":[{"__symbolic":"method"}],"initPlacemark":[{"__symbolic":"method"}],"_addEventListeners":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}},"origins":{"AngularYandexMapsModule":"./lib/angular-yandex-maps.module","IConfig":"./lib/models/models","ILoadEvent":"./lib/models/models","IEvent":"./lib/models/models","YA_MAP_CONFIG":"./lib/models/models","ScriptService":"./lib/services/script/script.service","YaClustererComponent":"./lib/components/ya-clusterer/ya-clusterer.component","YaControlComponent":"./lib/components/ya-control/ya-control.component","YaGeoObjectComponent":"./lib/components/ya-geoobject/ya-geoobject.component","YaMapComponent":"./lib/components/ya-map/ya-map.component","YaMultirouteComponent":"./lib/components/ya-multiroute/ya-multiroute.component","YaPanoramaComponent":"./lib/components/ya-panorama/ya-panorama.component","YaPlacemarkComponent":"./lib/components/ya-placemark/ya-placemark.component"},"importAs":"angular8-yandex-maps"} |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('rxjs'), require('rxjs/operators')) : | ||
typeof define === 'function' && define.amd ? define('angular8-yandex-maps', ['exports', '@angular/common', '@angular/core', 'rxjs', 'rxjs/operators'], factory) : | ||
(global = global || self, factory(global['angular8-yandex-maps'] = {}, global.ng.common, global.ng.core, global.rxjs, global.rxjs.operators)); | ||
}(this, (function (exports, i2, i0, rxjs, operators) { 'use strict'; | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('rxjs/operators'), require('rxjs')) : | ||
typeof define === 'function' && define.amd ? define('angular8-yandex-maps', ['exports', '@angular/common', '@angular/core', 'rxjs/operators', 'rxjs'], factory) : | ||
(global = global || self, factory(global['angular8-yandex-maps'] = {}, global.ng.common, global.ng.core, global.rxjs.operators, global.rxjs)); | ||
}(this, (function (exports, i2, i0, operators, rxjs) { 'use strict'; | ||
@@ -104,17 +104,27 @@ var YA_MAP_CONFIG = new i0.InjectionToken('YA_MAP_CONFIG'); | ||
}; | ||
YaGeoObjectComponent.prototype.initGeoObject = function (ymaps, map) { | ||
/** | ||
* Inits GeoObject | ||
* @param ymaps | ||
* @param map | ||
* @param clusterer We need this to control removing entity from Clusterer on Placemark destroy | ||
* `this._clusterer.remove(this._geoObject)`; | ||
* | ||
* @returns GeoObject | ||
*/ | ||
YaGeoObjectComponent.prototype.initGeoObject = function (ymaps, map, clusterer) { | ||
var geoObject = new ymaps.GeoObject(this.feature, this.options); | ||
this.id = generateRandomId(); | ||
this._clusterer = clusterer; | ||
this._geoObject = geoObject; | ||
this._map = map; | ||
this._geoObject = geoObject; | ||
map.geoObjects.add(geoObject); | ||
this._emitEvents(ymaps, geoObject); | ||
this._addEventListeners(ymaps, geoObject); | ||
return geoObject; | ||
}; | ||
/** | ||
* Add listeners on placemark events | ||
* Add listeners on geoObject events | ||
* @param ymaps | ||
* @param map | ||
* @param geoObject | ||
*/ | ||
YaGeoObjectComponent.prototype._emitEvents = function (ymaps, geoObject) { | ||
YaGeoObjectComponent.prototype._addEventListeners = function (ymaps, geoObject) { | ||
var _this = this; | ||
@@ -142,2 +152,4 @@ this.load.emit({ ymaps: ymaps, instance: geoObject }); | ||
YaGeoObjectComponent.prototype.ngOnDestroy = function () { | ||
var _a; | ||
(_a = this._clusterer) === null || _a === void 0 ? void 0 : _a.remove(this._geoObject); | ||
this._map.geoObjects.remove(this._geoObject); | ||
@@ -215,3 +227,3 @@ }; | ||
YaPlacemarkComponent.prototype._configPlacemark = function (changes) { | ||
var placemark = this.placemark; | ||
var placemark = this._placemark; | ||
if (!placemark) | ||
@@ -236,9 +248,19 @@ return; | ||
}; | ||
YaPlacemarkComponent.prototype.initPlacemark = function (ymaps, map) { | ||
/** | ||
* Inits placemark | ||
* @param ymaps | ||
* @param map | ||
* @param clusterer We need this to control removing entity from Clusterer on Placemark destroy | ||
* `this._clusterer.remove(this.placemark)`; | ||
* | ||
* @returns Placemark | ||
*/ | ||
YaPlacemarkComponent.prototype.initPlacemark = function (ymaps, map, clusterer) { | ||
var placemark = new ymaps.Placemark(this.geometry, this.properties, this.options); | ||
this.id = generateRandomId(); | ||
this._clusterer = clusterer; | ||
this._map = map; | ||
this.placemark = placemark; | ||
this._placemark = placemark; | ||
map.geoObjects.add(placemark); | ||
this._emitEvents(ymaps, placemark); | ||
this._addEventListeners(ymaps, placemark); | ||
return placemark; | ||
@@ -251,3 +273,3 @@ }; | ||
*/ | ||
YaPlacemarkComponent.prototype._emitEvents = function (ymaps, placemark) { | ||
YaPlacemarkComponent.prototype._addEventListeners = function (ymaps, placemark) { | ||
var _this = this; | ||
@@ -275,3 +297,5 @@ this.load.emit({ ymaps: ymaps, instance: placemark }); | ||
YaPlacemarkComponent.prototype.ngOnDestroy = function () { | ||
this._map.geoObjects.remove(this.placemark); | ||
var _a; | ||
(_a = this._clusterer) === null || _a === void 0 ? void 0 : _a.remove(this._placemark); | ||
this._map.geoObjects.remove(this._placemark); | ||
}; | ||
@@ -303,4 +327,3 @@ return YaPlacemarkComponent; | ||
* Component, geo object clusterer. Clusterizes objects in the visible area of the map. | ||
* If the object does not fall within the visible area of the map, | ||
* it will not be added to the map. | ||
* If the object does not fall within the visible area of the map, it will not be added to the map. | ||
* Note, that the clusterer does not react to changing the coordinates of objects (either programmatically, | ||
@@ -339,2 +362,3 @@ * or as the result of dragging). If you want to change the coordinates of some object in the clusterer, | ||
this.parentChange = new i0.EventEmitter(); | ||
this._sub = new rxjs.Subscription(); | ||
} | ||
@@ -361,10 +385,30 @@ YaClustererComponent.prototype.ngOnChanges = function (changes) { | ||
this._clusterer = clusterer; | ||
this.placemarks.forEach(function (p) { | ||
clusterer.add(p.initPlacemark(ymaps, map)); | ||
/** | ||
* Adds new Placemarks to clusterer on changes | ||
*/ | ||
var placemarksSub = this.placemarks.changes | ||
.pipe(operators.startWith(this.placemarks)) | ||
.subscribe(function (list) { | ||
list.forEach(function (placemark) { | ||
if (!placemark.id) { | ||
clusterer.add(placemark.initPlacemark(ymaps, map, clusterer)); | ||
} | ||
}); | ||
}); | ||
this.geoObjects.forEach(function (o) { | ||
clusterer.add(o.initGeoObject(ymaps, map)); | ||
this._sub.add(placemarksSub); | ||
/** | ||
* Adds new GeoObjects to clusterer on changes | ||
*/ | ||
var geoObjectsSub = this.geoObjects.changes | ||
.pipe(operators.startWith(this.geoObjects)) | ||
.subscribe(function (list) { | ||
list.forEach(function (geoObject) { | ||
if (!geoObject.id) { | ||
clusterer.add(geoObject.initGeoObject(ymaps, map, clusterer)); | ||
} | ||
}); | ||
}); | ||
this._sub.add(geoObjectsSub); | ||
map.geoObjects.add(clusterer); | ||
this._emitEvents(ymaps, clusterer); | ||
this._addEventListeners(ymaps, clusterer); | ||
}; | ||
@@ -376,3 +420,3 @@ /** | ||
*/ | ||
YaClustererComponent.prototype._emitEvents = function (ymaps, clusterer) { | ||
YaClustererComponent.prototype._addEventListeners = function (ymaps, clusterer) { | ||
var _this = this; | ||
@@ -393,2 +437,5 @@ this.load.emit({ ymaps: ymaps, instance: clusterer }); | ||
}; | ||
YaClustererComponent.prototype.ngOnDestroy = function () { | ||
this._sub.unsubscribe(); | ||
}; | ||
return YaClustererComponent; | ||
@@ -618,10 +665,10 @@ }()); | ||
map.geoObjects.add(multiroute); | ||
this._emitEvents(ymaps, multiroute); | ||
this._addEventListeners(ymaps, multiroute); | ||
}; | ||
/** | ||
* Add listeners on placemark events | ||
* Add listeners on multiroute events | ||
* @param ymaps | ||
* @param map | ||
*/ | ||
YaMultirouteComponent.prototype._emitEvents = function (ymaps, multiroute) { | ||
YaMultirouteComponent.prototype._addEventListeners = function (ymaps, multiroute) { | ||
var _this = this; | ||
@@ -736,3 +783,3 @@ this.load.emit({ ymaps: ymaps, instance: multiroute }); | ||
// Events | ||
_this._emitEvents(ymaps, map); | ||
_this._addEventListeners(ymaps, map); | ||
// Objects | ||
@@ -812,3 +859,4 @@ _this._initObjects(ymaps, map); | ||
/** | ||
* Add new objects on ContentChildren changes | ||
* Provides ContentChildren components to API. | ||
* Subscribes on ContentChildren changes to provide them to API. | ||
* @param ymaps | ||
@@ -818,3 +866,3 @@ * @param map | ||
YaMapComponent.prototype._initObjects = function (ymaps, map) { | ||
// Placemarks | ||
// Placemarks (async) | ||
var placemarksSub = this.placemarks.changes | ||
@@ -829,3 +877,4 @@ .pipe(operators.startWith(this.placemarks)) | ||
}); | ||
// Multiroutes | ||
this._sub.add(placemarksSub); | ||
// Multiroutes (async) | ||
var multiroutesSub = this.multiroutes.changes | ||
@@ -840,3 +889,4 @@ .pipe(operators.startWith(this.multiroutes)) | ||
}); | ||
// GeoObjects | ||
this._sub.add(multiroutesSub); | ||
// GeoObjects (async) | ||
var geoObjectsSub = this.geoObjects.changes | ||
@@ -851,13 +901,11 @@ .pipe(operators.startWith(this.geoObjects)) | ||
}); | ||
// Controls | ||
this._sub.add(geoObjectsSub); | ||
// Controls (not async) | ||
this.controls.forEach(function (control) { | ||
control.initControl(ymaps, map); | ||
}); | ||
// Clusterers | ||
// Clusterers (not async) | ||
this.clusterers.forEach(function (clusterer) { | ||
clusterer.initClusterer(ymaps, map); | ||
}); | ||
this._sub.add(placemarksSub); | ||
this._sub.add(multiroutesSub); | ||
this._sub.add(geoObjectsSub); | ||
}; | ||
@@ -869,3 +917,3 @@ /** | ||
*/ | ||
YaMapComponent.prototype._emitEvents = function (ymaps, map) { | ||
YaMapComponent.prototype._addEventListeners = function (ymaps, map) { | ||
var _this = this; | ||
@@ -1005,11 +1053,11 @@ this.load.emit({ ymaps: ymaps, instance: map }); | ||
_this._player = player; | ||
_this.emitEvents(ymaps, player); | ||
_this._addEventListeners(ymaps, player); | ||
}); | ||
}; | ||
/** | ||
* Emit events | ||
* Add listeners on panorama events | ||
* @param ymaps | ||
* @param player Player instance | ||
* @param player | ||
*/ | ||
YaPanoramaComponent.prototype.emitEvents = function (ymaps, player) { | ||
YaPanoramaComponent.prototype._addEventListeners = function (ymaps, player) { | ||
var _this = this; | ||
@@ -1016,0 +1064,0 @@ this.load.emit({ ymaps: ymaps, instance: player }); |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/common"),require("@angular/core"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("angular8-yandex-maps",["exports","@angular/common","@angular/core","rxjs","rxjs/operators"],e):e((t=t||self)["angular8-yandex-maps"]={},t.ng.common,t.ng.core,t.rxjs,t.rxjs.operators)}(this,(function(t,e,n,o,r){"use strict";var i=new n.InjectionToken("YA_MAP_CONFIG"),s=function(){return"f"+(~~(1e8*Math.random())).toString(16)},a=function(t){return t.trim().replace(/^ +/gm,"")},p=function(){function t(){this.load=new n.EventEmitter,this.baloon=new n.EventEmitter,this.yaclick=new n.EventEmitter,this.drag=new n.EventEmitter,this.hint=new n.EventEmitter,this.mouse=new n.EventEmitter,this.multitouch=new n.EventEmitter}return t.prototype.ngOnInit=function(){this._logErrors()},t.prototype.ngOnChanges=function(t){this._configGeoObject(t)},t.prototype._configGeoObject=function(t){var e=this._geoObject;if(e){var n=t.feature,o=t.options;n&&this._setFeature(n.currentValue,e),o&&e.options.set(o.currentValue)}},t.prototype._setFeature=function(t,e){var n=t.geometry,o=t.properties;n&&console.error(a("\n The geometry of GeoObject cannot be changed after entity init.\n\n Solutions:\n 1. Use ymaps from ILoadEvent\n 2. Recreate GeoObject component with new feature.geometry\n ")),o&&e.properties.set(o)},t.prototype._logErrors=function(){this.feature||(console.error("GeoObjects: feature input is required."),this.feature={})},t.prototype.initGeoObject=function(t,e){var n=new t.GeoObject(this.feature,this.options);return this.id=s(),this._map=e,this._geoObject=n,e.geoObjects.add(n),this._emitEvents(t,n),n},t.prototype._emitEvents=function(t,e){var n=this;this.load.emit({ymaps:t,instance:e}),e.events.add(["balloonopen","balloonclose"],(function(o){return n.baloon.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["click","dblclick"],(function(o){return n.yaclick.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["dragstart","dragend"],(function(o){return n.drag.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["hintopen","hintclose"],(function(o){return n.hint.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["mousedown","mouseenter","mouseleave","mousemove","mouseup"],(function(o){return n.mouse.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["multitouchstart","multitouchmove","multitouchend"],(function(o){return n.multitouch.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})}))},t.prototype.ngOnDestroy=function(){this._map.geoObjects.remove(this._geoObject)},t}();p.decorators=[{type:n.Component,args:[{selector:"ya-geoobject",template:"",styles:[""]}]}],p.ctorParameters=function(){return[]},p.propDecorators={feature:[{type:n.Input}],options:[{type:n.Input}],load:[{type:n.Output}],baloon:[{type:n.Output}],yaclick:[{type:n.Output}],drag:[{type:n.Output}],hint:[{type:n.Output}],mouse:[{type:n.Output}],multitouch:[{type:n.Output}]};var u=function(){function t(){this.load=new n.EventEmitter,this.baloon=new n.EventEmitter,this.yaclick=new n.EventEmitter,this.drag=new n.EventEmitter,this.hint=new n.EventEmitter,this.mouse=new n.EventEmitter,this.multitouch=new n.EventEmitter}return t.prototype.ngOnInit=function(){this._logErrors()},t.prototype.ngOnChanges=function(t){this._configPlacemark(t)},t.prototype._configPlacemark=function(t){var e=this.placemark;if(e){var n=t.geometry,o=t.properties,r=t.options;n&&e.geometry.setCoordinates(n.currentValue),o&&e.properties.set(o.currentValue),r&&e.options.set(r.currentValue)}},t.prototype._logErrors=function(){this.geometry||(console.error("Placemark: geometry input is required."),this.geometry=[])},t.prototype.initPlacemark=function(t,e){var n=new t.Placemark(this.geometry,this.properties,this.options);return this.id=s(),this._map=e,this.placemark=n,e.geoObjects.add(n),this._emitEvents(t,n),n},t.prototype._emitEvents=function(t,e){var n=this;this.load.emit({ymaps:t,instance:e}),e.events.add(["balloonopen","balloonclose"],(function(o){return n.baloon.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["click","dblclick"],(function(o){return n.yaclick.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["dragstart","dragend"],(function(o){return n.drag.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["hintopen","hintclose"],(function(o){return n.hint.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["mousedown","mouseenter","mouseleave","mousemove","mouseup"],(function(o){return n.mouse.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["multitouchstart","multitouchmove","multitouchend"],(function(o){return n.multitouch.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})}))},t.prototype.ngOnDestroy=function(){this._map.geoObjects.remove(this.placemark)},t}();u.decorators=[{type:n.Component,args:[{selector:"ya-placemark",template:"",styles:[""]}]}],u.ctorParameters=function(){return[]},u.propDecorators={geometry:[{type:n.Input}],properties:[{type:n.Input}],options:[{type:n.Input}],load:[{type:n.Output}],baloon:[{type:n.Output}],yaclick:[{type:n.Output}],drag:[{type:n.Output}],hint:[{type:n.Output}],mouse:[{type:n.Output}],multitouch:[{type:n.Output}]};var c=function(){function t(){this.load=new n.EventEmitter,this.hint=new n.EventEmitter,this.mapChange=new n.EventEmitter,this.optionsChange=new n.EventEmitter,this.parentChange=new n.EventEmitter}return t.prototype.ngOnChanges=function(t){this._configClusterer(t)},t.prototype._configClusterer=function(t){var e=this._clusterer;if(e){var n=t.options;n&&e.options.set(n.currentValue)}},t.prototype.initClusterer=function(t,e){var n=new t.Clusterer(this.options);this._clusterer=n,this.placemarks.forEach((function(o){n.add(o.initPlacemark(t,e))})),this.geoObjects.forEach((function(o){n.add(o.initGeoObject(t,e))})),e.geoObjects.add(n),this._emitEvents(t,n)},t.prototype._emitEvents=function(t,e){var n=this;this.load.emit({ymaps:t,instance:e}),e.events.add(["hintclose","hintopen"],(function(o){return n.hint.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["mapchange"],(function(o){return n.mapChange.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["optionschange"],(function(o){return n.optionsChange.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["parentchange"],(function(o){return n.parentChange.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})}))},t}();c.decorators=[{type:n.Component,args:[{selector:"ya-clusterer",template:"",styles:[""]}]}],c.ctorParameters=function(){return[]},c.propDecorators={placemarks:[{type:n.ContentChildren,args:[u]}],geoObjects:[{type:n.ContentChildren,args:[p]}],options:[{type:n.Input}],load:[{type:n.Output}],hint:[{type:n.Output}],mapChange:[{type:n.Output}],optionsChange:[{type:n.Output}],parentChange:[{type:n.Output}]};var m=function(){function t(){this.load=new n.EventEmitter}return t.prototype.ngOnInit=function(){this._logErrors()},t.prototype._logErrors=function(){this.type||console.error("Control: type input is required.")},t.prototype.initControl=function(t,e){var n=new t.control[this.type](this.parameters);"RoutePanel"===this.type&&this.parameters&&this.parameters.state&&n.routePanel.state.set(Object.assign({},this.parameters.state)),e.controls.add(n),this.load.emit({ymaps:t,instance:n})},t.prototype.ngOnChanges=function(t){this._configControl(t)},t.prototype._configControl=function(t){for(var e in t)if(t[e].firstChange)return;console.error(a("\n Control doesn't support dynamic configuartion.\n\n Solutions:\n 1. Use ymaps from ILoadEvent\n 2. Recreate component with new configuration\n "))},t}();m.decorators=[{type:n.Component,args:[{selector:"ya-control",template:"",styles:[""]}]}],m.ctorParameters=function(){return[]},m.propDecorators={type:[{type:n.Input}],parameters:[{type:n.Input}],load:[{type:n.Output}]};var l={apikey:null,lang:"ru_RU"},y=function(){function t(t,e){this.document=e,this._config=t||l}return t.prototype.initScript=function(){if(!this._script){var t=this.document.createElement("script");this._setSource(t,this._config),this._script=this.document.body.appendChild(t)}return"ymaps"in window?o.from(ymaps.ready()).pipe(r.map((function(){return ymaps}))):o.fromEvent(this._script,"load").pipe(r.switchMap((function(){return o.from(ymaps.ready()).pipe(r.map((function(){return ymaps})))})))},t.prototype._setSource=function(t,e){var n=this._convertIntoQueryParams(e),o=e.enterprise,r=e.version,i=void 0===r?"2.1":r;t.src="https://"+(o?"enterprise.":"")+"api-maps.yandex.ru/"+i+"/?"+n},t.prototype._convertIntoQueryParams=function(t){return Object.keys(t).map((function(e){return e+"="+t[e]})).join("&")},t}();y.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new y(n.ɵɵinject(i,8),n.ɵɵinject(e.DOCUMENT))},token:y,providedIn:"root"}),y.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],y.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[i]}]},{type:Document,decorators:[{type:n.Inject,args:[e.DOCUMENT]}]}]};var h=function(){function t(){this.load=new n.EventEmitter,this.activeroutechange=new n.EventEmitter,this.baloon=new n.EventEmitter,this.yaclick=new n.EventEmitter,this.mouse=new n.EventEmitter,this.multitouch=new n.EventEmitter}return t.prototype.ngOnInit=function(){this._logErrors()},t.prototype.ngOnChanges=function(t){this._configMultiroute(t)},t.prototype._configMultiroute=function(t){var e=this._multiroute;if(e){var n=t.referencePoints,o=t.model,r=t.options;n&&e.model.setReferencePoints(n.currentValue),o&&this._setModel(o.currentValue,e),r&&e.options.set(r.currentValue)}},t.prototype._setModel=function(t,e){var n=t.referencePoints,o=t.params;n&&e.model.setReferencePoints(n),o&&e.model.setParams(o)},t.prototype._logErrors=function(){this.referencePoints||(console.error("Multiroute: referencePoints input is required."),this.referencePoints=[])},t.prototype.initMultiroute=function(t,e){var n=new t.multiRouter.MultiRoute(Object.assign(Object.assign({},this.model),{referencePoints:this.referencePoints}),this.options);this.id=s(),this._map=e,this._multiroute=n,e.geoObjects.add(n),this._emitEvents(t,n)},t.prototype._emitEvents=function(t,e){var n=this;this.load.emit({ymaps:t,instance:e}),e.events.add("activeroutechange",(function(o){return n.activeroutechange.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["balloonopen","balloonclose"],(function(o){return n.baloon.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["click","dblclick"],(function(o){return n.yaclick.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["mousedown","mouseenter","mouseleave","mousemove","mouseup"],(function(o){return n.mouse.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["multitouchstart","multitouchmove","multitouchend"],(function(o){return n.multitouch.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})}))},t.prototype.ngOnDestroy=function(){this._map.geoObjects.remove(this._multiroute)},t}();h.decorators=[{type:n.Component,args:[{selector:"ya-multiroute",template:"",styles:[""]}]}],h.ctorParameters=function(){return[]},h.propDecorators={referencePoints:[{type:n.Input}],model:[{type:n.Input}],options:[{type:n.Input}],load:[{type:n.Output}],activeroutechange:[{type:n.Output}],baloon:[{type:n.Output}],yaclick:[{type:n.Output}],mouse:[{type:n.Output}],multitouch:[{type:n.Output}]};var v=function(){function t(t){this._scriptService=t,this.zoom=10,this.state={},this.options={},this.load=new n.EventEmitter,this.action=new n.EventEmitter,this.baloon=new n.EventEmitter,this.yaclick=new n.EventEmitter,this.hint=new n.EventEmitter,this.mouse=new n.EventEmitter,this.multitouch=new n.EventEmitter}return t.prototype.ngOnInit=function(){var t=this;this._sub=new o.Subscription,this._logErrors(),this._scriptService.initScript().pipe(r.take(1)).subscribe((function(e){if(t.onlyInstance)t.load.emit({ymaps:e});else{var n=t._createMap(e,s());t._map=n,t._emitEvents(e,n),t._initObjects(e,n)}}))},t.prototype.ngOnChanges=function(t){this._configMap(t)},t.prototype._configMap=function(t){var e=this._map;if(e){var n=t.center,o=t.zoom,r=t.state,i=t.options;n&&e.setCenter(n.currentValue),o&&e.setZoom(o.currentValue),r&&this._setState(r.currentValue,e),i&&e.options.set(i.currentValue)}},t.prototype._setState=function(t,e){var n=t.behaviors,o=t.bounds,r=t.center,i=t.controls,s=t.margin,a=t.type,p=t.zoom;n&&e.behaviors.enable(n),o&&e.setBounds(o),r&&e.setCenter(r),i&&i.forEach((function(t){e.controls.add(t)})),s&&e.margin.setDefaultMargin(s),a&&e.setType(a),p&&e.setZoom(p)},t.prototype._logErrors=function(){this.center||this.onlyInstance||(console.error("Map: center input is required."),this.center=[])},t.prototype._createMap=function(t,e){var n=this.mapContainer.nativeElement;return n.setAttribute("id",e),n.style.cssText="width: 100%; height: 100%;",new t.Map(e,Object.assign(Object.assign({},this.state),{zoom:this.zoom,center:this.center}),this.options)},t.prototype._initObjects=function(t,e){var n=this.placemarks.changes.pipe(r.startWith(this.placemarks)).subscribe((function(n){n.forEach((function(n){n.id||n.initPlacemark(t,e)}))})),o=this.multiroutes.changes.pipe(r.startWith(this.multiroutes)).subscribe((function(n){n.forEach((function(n){n.id||n.initMultiroute(t,e)}))})),i=this.geoObjects.changes.pipe(r.startWith(this.geoObjects)).subscribe((function(n){n.forEach((function(n){n.id||n.initGeoObject(t,e)}))}));this.controls.forEach((function(n){n.initControl(t,e)})),this.clusterers.forEach((function(n){n.initClusterer(t,e)})),this._sub.add(n),this._sub.add(o),this._sub.add(i)},t.prototype._emitEvents=function(t,e){var n=this;this.load.emit({ymaps:t,instance:e}),e.events.add(["actionbegin","actionend"],(function(o){return n.action.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["balloonopen","balloonclose"],(function(o){return n.baloon.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["click","dblclick"],(function(o){return n.yaclick.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["hintopen","hintclose"],(function(o){return n.hint.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["mousedown","mouseenter","mouseleave","mousemove","mouseup"],(function(o){return n.mouse.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["multitouchstart","multitouchmove","multitouchend"],(function(o){return n.multitouch.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})}))},t.prototype.ngOnDestroy=function(){this._sub.unsubscribe()},t}();v.decorators=[{type:n.Component,args:[{selector:"ya-map",template:"<div #container></div>\r\n",styles:[""]}]}],v.ctorParameters=function(){return[{type:y}]},v.propDecorators={mapContainer:[{type:n.ViewChild,args:["container"]}],placemarks:[{type:n.ContentChildren,args:[u]}],multiroutes:[{type:n.ContentChildren,args:[h]}],geoObjects:[{type:n.ContentChildren,args:[p]}],controls:[{type:n.ContentChildren,args:[m]}],clusterers:[{type:n.ContentChildren,args:[c]}],onlyInstance:[{type:n.Input}],center:[{type:n.Input}],zoom:[{type:n.Input}],state:[{type:n.Input}],options:[{type:n.Input}],load:[{type:n.Output}],action:[{type:n.Output}],baloon:[{type:n.Output}],yaclick:[{type:n.Output}],hint:[{type:n.Output}],mouse:[{type:n.Output}],multitouch:[{type:n.Output}]};var d=function(){function t(t){this._scriptService=t,this.load=new n.EventEmitter,this.direction=new n.EventEmitter,this.fullscreen=new n.EventEmitter,this.marker=new n.EventEmitter}return t.prototype.ngOnInit=function(){var t=this;this._logErrors(),this._scriptService.initScript().pipe(r.take(1)).subscribe((function(e){t._createPanorama(e,s())}))},t.prototype.ngOnChanges=function(t){this._configPanorama(t)},t.prototype._configPanorama=function(t){var e=this._player;if(e){var n=t.point,o=t.layer,r=t.options;n&&e.moveTo(n.currentValue,o?{layer:o.currentValue}:{}),o&&!n&&console.error("Panorama: You cannot change the layer without point"),r&&console.error(a("\n The options of Panorama cannot be changed after entity init.\n\n Solutions:\n 1. Use ymaps from ILoadEvent\n 2. Recreate Panorama component with new options\n "))}},t.prototype._logErrors=function(){this.point||(console.error("Panorama: point input is required."),this.point=[])},t.prototype._createPanorama=function(t,e){var n=this,o=this.panoramaContainer.nativeElement;o.setAttribute("id",e),o.style.cssText="width: 100%; height: 100%;",t.panorama.locate(this.point,{layer:this.layer}).then((function(o){var r=new t.panorama.Player(e,o[0],n.options);n._player=r,n.emitEvents(t,r)}))},t.prototype.emitEvents=function(t,e){var n=this;this.load.emit({ymaps:t,instance:e}),e.events.add("directionchange",(function(o){return n.direction.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["fullscreenenter","fullscreenexit"],(function(o){return n.fullscreen.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["markercollapse","markerexpand","markermouseenter","markermouseleave"],(function(o){return n.marker.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})}))},t}();d.decorators=[{type:n.Component,args:[{selector:"ya-panorama",template:"<div #container></div>\r\n",styles:[""]}]}],d.ctorParameters=function(){return[{type:y}]},d.propDecorators={panoramaContainer:[{type:n.ViewChild,args:["container"]}],point:[{type:n.Input}],layer:[{type:n.Input}],options:[{type:n.Input}],load:[{type:n.Output}],direction:[{type:n.Output}],fullscreen:[{type:n.Output}],marker:[{type:n.Output}]};var f=function(){function t(){}return t.forRoot=function(e){return{ngModule:t,providers:[{provide:i,useValue:e}]}},t}();f.decorators=[{type:n.NgModule,args:[{declarations:[c,m,p,v,h,d,u],imports:[e.CommonModule],exports:[c,m,p,v,h,d,u]}]}],t.AngularYandexMapsModule=f,t.ScriptService=y,t.YA_MAP_CONFIG=i,t.YaClustererComponent=c,t.YaControlComponent=m,t.YaGeoObjectComponent=p,t.YaMapComponent=v,t.YaMultirouteComponent=h,t.YaPanoramaComponent=d,t.YaPlacemarkComponent=u,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/common"),require("@angular/core"),require("rxjs/operators"),require("rxjs")):"function"==typeof define&&define.amd?define("angular8-yandex-maps",["exports","@angular/common","@angular/core","rxjs/operators","rxjs"],e):e((t=t||self)["angular8-yandex-maps"]={},t.ng.common,t.ng.core,t.rxjs.operators,t.rxjs)}(this,(function(t,e,n,o,r){"use strict";var i=new n.InjectionToken("YA_MAP_CONFIG"),s=function(){return"f"+(~~(1e8*Math.random())).toString(16)},a=function(t){return t.trim().replace(/^ +/gm,"")},p=function(){function t(){this.load=new n.EventEmitter,this.baloon=new n.EventEmitter,this.yaclick=new n.EventEmitter,this.drag=new n.EventEmitter,this.hint=new n.EventEmitter,this.mouse=new n.EventEmitter,this.multitouch=new n.EventEmitter}return t.prototype.ngOnInit=function(){this._logErrors()},t.prototype.ngOnChanges=function(t){this._configGeoObject(t)},t.prototype._configGeoObject=function(t){var e=this._geoObject;if(e){var n=t.feature,o=t.options;n&&this._setFeature(n.currentValue,e),o&&e.options.set(o.currentValue)}},t.prototype._setFeature=function(t,e){var n=t.geometry,o=t.properties;n&&console.error(a("\n The geometry of GeoObject cannot be changed after entity init.\n\n Solutions:\n 1. Use ymaps from ILoadEvent\n 2. Recreate GeoObject component with new feature.geometry\n ")),o&&e.properties.set(o)},t.prototype._logErrors=function(){this.feature||(console.error("GeoObjects: feature input is required."),this.feature={})},t.prototype.initGeoObject=function(t,e,n){var o=new t.GeoObject(this.feature,this.options);return this.id=s(),this._clusterer=n,this._geoObject=o,this._map=e,e.geoObjects.add(o),this._addEventListeners(t,o),o},t.prototype._addEventListeners=function(t,e){var n=this;this.load.emit({ymaps:t,instance:e}),e.events.add(["balloonopen","balloonclose"],(function(o){return n.baloon.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["click","dblclick"],(function(o){return n.yaclick.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["dragstart","dragend"],(function(o){return n.drag.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["hintopen","hintclose"],(function(o){return n.hint.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["mousedown","mouseenter","mouseleave","mousemove","mouseup"],(function(o){return n.mouse.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["multitouchstart","multitouchmove","multitouchend"],(function(o){return n.multitouch.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})}))},t.prototype.ngOnDestroy=function(){var t;null===(t=this._clusterer)||void 0===t||t.remove(this._geoObject),this._map.geoObjects.remove(this._geoObject)},t}();p.decorators=[{type:n.Component,args:[{selector:"ya-geoobject",template:"",styles:[""]}]}],p.ctorParameters=function(){return[]},p.propDecorators={feature:[{type:n.Input}],options:[{type:n.Input}],load:[{type:n.Output}],baloon:[{type:n.Output}],yaclick:[{type:n.Output}],drag:[{type:n.Output}],hint:[{type:n.Output}],mouse:[{type:n.Output}],multitouch:[{type:n.Output}]};var u=function(){function t(){this.load=new n.EventEmitter,this.baloon=new n.EventEmitter,this.yaclick=new n.EventEmitter,this.drag=new n.EventEmitter,this.hint=new n.EventEmitter,this.mouse=new n.EventEmitter,this.multitouch=new n.EventEmitter}return t.prototype.ngOnInit=function(){this._logErrors()},t.prototype.ngOnChanges=function(t){this._configPlacemark(t)},t.prototype._configPlacemark=function(t){var e=this._placemark;if(e){var n=t.geometry,o=t.properties,r=t.options;n&&e.geometry.setCoordinates(n.currentValue),o&&e.properties.set(o.currentValue),r&&e.options.set(r.currentValue)}},t.prototype._logErrors=function(){this.geometry||(console.error("Placemark: geometry input is required."),this.geometry=[])},t.prototype.initPlacemark=function(t,e,n){var o=new t.Placemark(this.geometry,this.properties,this.options);return this.id=s(),this._clusterer=n,this._map=e,this._placemark=o,e.geoObjects.add(o),this._addEventListeners(t,o),o},t.prototype._addEventListeners=function(t,e){var n=this;this.load.emit({ymaps:t,instance:e}),e.events.add(["balloonopen","balloonclose"],(function(o){return n.baloon.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["click","dblclick"],(function(o){return n.yaclick.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["dragstart","dragend"],(function(o){return n.drag.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["hintopen","hintclose"],(function(o){return n.hint.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["mousedown","mouseenter","mouseleave","mousemove","mouseup"],(function(o){return n.mouse.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["multitouchstart","multitouchmove","multitouchend"],(function(o){return n.multitouch.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})}))},t.prototype.ngOnDestroy=function(){var t;null===(t=this._clusterer)||void 0===t||t.remove(this._placemark),this._map.geoObjects.remove(this._placemark)},t}();u.decorators=[{type:n.Component,args:[{selector:"ya-placemark",template:"",styles:[""]}]}],u.ctorParameters=function(){return[]},u.propDecorators={geometry:[{type:n.Input}],properties:[{type:n.Input}],options:[{type:n.Input}],load:[{type:n.Output}],baloon:[{type:n.Output}],yaclick:[{type:n.Output}],drag:[{type:n.Output}],hint:[{type:n.Output}],mouse:[{type:n.Output}],multitouch:[{type:n.Output}]};var c=function(){function t(){this.load=new n.EventEmitter,this.hint=new n.EventEmitter,this.mapChange=new n.EventEmitter,this.optionsChange=new n.EventEmitter,this.parentChange=new n.EventEmitter,this._sub=new r.Subscription}return t.prototype.ngOnChanges=function(t){this._configClusterer(t)},t.prototype._configClusterer=function(t){var e=this._clusterer;if(e){var n=t.options;n&&e.options.set(n.currentValue)}},t.prototype.initClusterer=function(t,e){var n=new t.Clusterer(this.options);this._clusterer=n;var r=this.placemarks.changes.pipe(o.startWith(this.placemarks)).subscribe((function(o){o.forEach((function(o){o.id||n.add(o.initPlacemark(t,e,n))}))}));this._sub.add(r);var i=this.geoObjects.changes.pipe(o.startWith(this.geoObjects)).subscribe((function(o){o.forEach((function(o){o.id||n.add(o.initGeoObject(t,e,n))}))}));this._sub.add(i),e.geoObjects.add(n),this._addEventListeners(t,n)},t.prototype._addEventListeners=function(t,e){var n=this;this.load.emit({ymaps:t,instance:e}),e.events.add(["hintclose","hintopen"],(function(o){return n.hint.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["mapchange"],(function(o){return n.mapChange.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["optionschange"],(function(o){return n.optionsChange.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["parentchange"],(function(o){return n.parentChange.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})}))},t.prototype.ngOnDestroy=function(){this._sub.unsubscribe()},t}();c.decorators=[{type:n.Component,args:[{selector:"ya-clusterer",template:"",styles:[""]}]}],c.ctorParameters=function(){return[]},c.propDecorators={placemarks:[{type:n.ContentChildren,args:[u]}],geoObjects:[{type:n.ContentChildren,args:[p]}],options:[{type:n.Input}],load:[{type:n.Output}],hint:[{type:n.Output}],mapChange:[{type:n.Output}],optionsChange:[{type:n.Output}],parentChange:[{type:n.Output}]};var m=function(){function t(){this.load=new n.EventEmitter}return t.prototype.ngOnInit=function(){this._logErrors()},t.prototype._logErrors=function(){this.type||console.error("Control: type input is required.")},t.prototype.initControl=function(t,e){var n=new t.control[this.type](this.parameters);"RoutePanel"===this.type&&this.parameters&&this.parameters.state&&n.routePanel.state.set(Object.assign({},this.parameters.state)),e.controls.add(n),this.load.emit({ymaps:t,instance:n})},t.prototype.ngOnChanges=function(t){this._configControl(t)},t.prototype._configControl=function(t){for(var e in t)if(t[e].firstChange)return;console.error(a("\n Control doesn't support dynamic configuartion.\n\n Solutions:\n 1. Use ymaps from ILoadEvent\n 2. Recreate component with new configuration\n "))},t}();m.decorators=[{type:n.Component,args:[{selector:"ya-control",template:"",styles:[""]}]}],m.ctorParameters=function(){return[]},m.propDecorators={type:[{type:n.Input}],parameters:[{type:n.Input}],load:[{type:n.Output}]};var l={apikey:null,lang:"ru_RU"},y=function(){function t(t,e){this.document=e,this._config=t||l}return t.prototype.initScript=function(){if(!this._script){var t=this.document.createElement("script");this._setSource(t,this._config),this._script=this.document.body.appendChild(t)}return"ymaps"in window?r.from(ymaps.ready()).pipe(o.map((function(){return ymaps}))):r.fromEvent(this._script,"load").pipe(o.switchMap((function(){return r.from(ymaps.ready()).pipe(o.map((function(){return ymaps})))})))},t.prototype._setSource=function(t,e){var n=this._convertIntoQueryParams(e),o=e.enterprise,r=e.version,i=void 0===r?"2.1":r;t.src="https://"+(o?"enterprise.":"")+"api-maps.yandex.ru/"+i+"/?"+n},t.prototype._convertIntoQueryParams=function(t){return Object.keys(t).map((function(e){return e+"="+t[e]})).join("&")},t}();y.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new y(n.ɵɵinject(i,8),n.ɵɵinject(e.DOCUMENT))},token:y,providedIn:"root"}),y.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],y.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[i]}]},{type:Document,decorators:[{type:n.Inject,args:[e.DOCUMENT]}]}]};var h=function(){function t(){this.load=new n.EventEmitter,this.activeroutechange=new n.EventEmitter,this.baloon=new n.EventEmitter,this.yaclick=new n.EventEmitter,this.mouse=new n.EventEmitter,this.multitouch=new n.EventEmitter}return t.prototype.ngOnInit=function(){this._logErrors()},t.prototype.ngOnChanges=function(t){this._configMultiroute(t)},t.prototype._configMultiroute=function(t){var e=this._multiroute;if(e){var n=t.referencePoints,o=t.model,r=t.options;n&&e.model.setReferencePoints(n.currentValue),o&&this._setModel(o.currentValue,e),r&&e.options.set(r.currentValue)}},t.prototype._setModel=function(t,e){var n=t.referencePoints,o=t.params;n&&e.model.setReferencePoints(n),o&&e.model.setParams(o)},t.prototype._logErrors=function(){this.referencePoints||(console.error("Multiroute: referencePoints input is required."),this.referencePoints=[])},t.prototype.initMultiroute=function(t,e){var n=new t.multiRouter.MultiRoute(Object.assign(Object.assign({},this.model),{referencePoints:this.referencePoints}),this.options);this.id=s(),this._map=e,this._multiroute=n,e.geoObjects.add(n),this._addEventListeners(t,n)},t.prototype._addEventListeners=function(t,e){var n=this;this.load.emit({ymaps:t,instance:e}),e.events.add("activeroutechange",(function(o){return n.activeroutechange.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["balloonopen","balloonclose"],(function(o){return n.baloon.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["click","dblclick"],(function(o){return n.yaclick.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["mousedown","mouseenter","mouseleave","mousemove","mouseup"],(function(o){return n.mouse.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["multitouchstart","multitouchmove","multitouchend"],(function(o){return n.multitouch.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})}))},t.prototype.ngOnDestroy=function(){this._map.geoObjects.remove(this._multiroute)},t}();h.decorators=[{type:n.Component,args:[{selector:"ya-multiroute",template:"",styles:[""]}]}],h.ctorParameters=function(){return[]},h.propDecorators={referencePoints:[{type:n.Input}],model:[{type:n.Input}],options:[{type:n.Input}],load:[{type:n.Output}],activeroutechange:[{type:n.Output}],baloon:[{type:n.Output}],yaclick:[{type:n.Output}],mouse:[{type:n.Output}],multitouch:[{type:n.Output}]};var d=function(){function t(t){this._scriptService=t,this.zoom=10,this.state={},this.options={},this.load=new n.EventEmitter,this.action=new n.EventEmitter,this.baloon=new n.EventEmitter,this.yaclick=new n.EventEmitter,this.hint=new n.EventEmitter,this.mouse=new n.EventEmitter,this.multitouch=new n.EventEmitter}return t.prototype.ngOnInit=function(){var t=this;this._sub=new r.Subscription,this._logErrors(),this._scriptService.initScript().pipe(o.take(1)).subscribe((function(e){if(t.onlyInstance)t.load.emit({ymaps:e});else{var n=t._createMap(e,s());t._map=n,t._addEventListeners(e,n),t._initObjects(e,n)}}))},t.prototype.ngOnChanges=function(t){this._configMap(t)},t.prototype._configMap=function(t){var e=this._map;if(e){var n=t.center,o=t.zoom,r=t.state,i=t.options;n&&e.setCenter(n.currentValue),o&&e.setZoom(o.currentValue),r&&this._setState(r.currentValue,e),i&&e.options.set(i.currentValue)}},t.prototype._setState=function(t,e){var n=t.behaviors,o=t.bounds,r=t.center,i=t.controls,s=t.margin,a=t.type,p=t.zoom;n&&e.behaviors.enable(n),o&&e.setBounds(o),r&&e.setCenter(r),i&&i.forEach((function(t){e.controls.add(t)})),s&&e.margin.setDefaultMargin(s),a&&e.setType(a),p&&e.setZoom(p)},t.prototype._logErrors=function(){this.center||this.onlyInstance||(console.error("Map: center input is required."),this.center=[])},t.prototype._createMap=function(t,e){var n=this.mapContainer.nativeElement;return n.setAttribute("id",e),n.style.cssText="width: 100%; height: 100%;",new t.Map(e,Object.assign(Object.assign({},this.state),{zoom:this.zoom,center:this.center}),this.options)},t.prototype._initObjects=function(t,e){var n=this.placemarks.changes.pipe(o.startWith(this.placemarks)).subscribe((function(n){n.forEach((function(n){n.id||n.initPlacemark(t,e)}))}));this._sub.add(n);var r=this.multiroutes.changes.pipe(o.startWith(this.multiroutes)).subscribe((function(n){n.forEach((function(n){n.id||n.initMultiroute(t,e)}))}));this._sub.add(r);var i=this.geoObjects.changes.pipe(o.startWith(this.geoObjects)).subscribe((function(n){n.forEach((function(n){n.id||n.initGeoObject(t,e)}))}));this._sub.add(i),this.controls.forEach((function(n){n.initControl(t,e)})),this.clusterers.forEach((function(n){n.initClusterer(t,e)}))},t.prototype._addEventListeners=function(t,e){var n=this;this.load.emit({ymaps:t,instance:e}),e.events.add(["actionbegin","actionend"],(function(o){return n.action.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["balloonopen","balloonclose"],(function(o){return n.baloon.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["click","dblclick"],(function(o){return n.yaclick.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["hintopen","hintclose"],(function(o){return n.hint.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["mousedown","mouseenter","mouseleave","mousemove","mouseup"],(function(o){return n.mouse.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["multitouchstart","multitouchmove","multitouchend"],(function(o){return n.multitouch.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})}))},t.prototype.ngOnDestroy=function(){this._sub.unsubscribe()},t}();d.decorators=[{type:n.Component,args:[{selector:"ya-map",template:"<div #container></div>\r\n",styles:[""]}]}],d.ctorParameters=function(){return[{type:y}]},d.propDecorators={mapContainer:[{type:n.ViewChild,args:["container"]}],placemarks:[{type:n.ContentChildren,args:[u]}],multiroutes:[{type:n.ContentChildren,args:[h]}],geoObjects:[{type:n.ContentChildren,args:[p]}],controls:[{type:n.ContentChildren,args:[m]}],clusterers:[{type:n.ContentChildren,args:[c]}],onlyInstance:[{type:n.Input}],center:[{type:n.Input}],zoom:[{type:n.Input}],state:[{type:n.Input}],options:[{type:n.Input}],load:[{type:n.Output}],action:[{type:n.Output}],baloon:[{type:n.Output}],yaclick:[{type:n.Output}],hint:[{type:n.Output}],mouse:[{type:n.Output}],multitouch:[{type:n.Output}]};var v=function(){function t(t){this._scriptService=t,this.load=new n.EventEmitter,this.direction=new n.EventEmitter,this.fullscreen=new n.EventEmitter,this.marker=new n.EventEmitter}return t.prototype.ngOnInit=function(){var t=this;this._logErrors(),this._scriptService.initScript().pipe(o.take(1)).subscribe((function(e){t._createPanorama(e,s())}))},t.prototype.ngOnChanges=function(t){this._configPanorama(t)},t.prototype._configPanorama=function(t){var e=this._player;if(e){var n=t.point,o=t.layer,r=t.options;n&&e.moveTo(n.currentValue,o?{layer:o.currentValue}:{}),o&&!n&&console.error("Panorama: You cannot change the layer without point"),r&&console.error(a("\n The options of Panorama cannot be changed after entity init.\n\n Solutions:\n 1. Use ymaps from ILoadEvent\n 2. Recreate Panorama component with new options\n "))}},t.prototype._logErrors=function(){this.point||(console.error("Panorama: point input is required."),this.point=[])},t.prototype._createPanorama=function(t,e){var n=this,o=this.panoramaContainer.nativeElement;o.setAttribute("id",e),o.style.cssText="width: 100%; height: 100%;",t.panorama.locate(this.point,{layer:this.layer}).then((function(o){var r=new t.panorama.Player(e,o[0],n.options);n._player=r,n._addEventListeners(t,r)}))},t.prototype._addEventListeners=function(t,e){var n=this;this.load.emit({ymaps:t,instance:e}),e.events.add("directionchange",(function(o){return n.direction.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["fullscreenenter","fullscreenexit"],(function(o){return n.fullscreen.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})})),e.events.add(["markercollapse","markerexpand","markermouseenter","markermouseleave"],(function(o){return n.marker.emit({ymaps:t,instance:e,type:o.originalEvent.type,event:o})}))},t}();v.decorators=[{type:n.Component,args:[{selector:"ya-panorama",template:"<div #container></div>\r\n",styles:[""]}]}],v.ctorParameters=function(){return[{type:y}]},v.propDecorators={panoramaContainer:[{type:n.ViewChild,args:["container"]}],point:[{type:n.Input}],layer:[{type:n.Input}],options:[{type:n.Input}],load:[{type:n.Output}],direction:[{type:n.Output}],fullscreen:[{type:n.Output}],marker:[{type:n.Output}]};var f=function(){function t(){}return t.forRoot=function(e){return{ngModule:t,providers:[{provide:i,useValue:e}]}},t}();f.decorators=[{type:n.NgModule,args:[{declarations:[c,m,p,d,h,v,u],imports:[e.CommonModule],exports:[c,m,p,d,h,v,u]}]}],t.AngularYandexMapsModule=f,t.ScriptService=y,t.YA_MAP_CONFIG=i,t.YaClustererComponent=c,t.YaControlComponent=m,t.YaGeoObjectComponent=p,t.YaMapComponent=d,t.YaMultirouteComponent=h,t.YaPanoramaComponent=v,t.YaPlacemarkComponent=u,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=angular8-yandex-maps.umd.min.js.map |
import { Component, ContentChildren, EventEmitter, Input, Output } from '@angular/core'; | ||
import { startWith } from 'rxjs/operators'; | ||
import { Subscription } from 'rxjs'; | ||
import { YaGeoObjectComponent } from '../ya-geoobject/ya-geoobject.component'; | ||
@@ -6,4 +8,3 @@ import { YaPlacemarkComponent } from '../ya-placemark/ya-placemark.component'; | ||
* Component, geo object clusterer. Clusterizes objects in the visible area of the map. | ||
* If the object does not fall within the visible area of the map, | ||
* it will not be added to the map. | ||
* If the object does not fall within the visible area of the map, it will not be added to the map. | ||
* Note, that the clusterer does not react to changing the coordinates of objects (either programmatically, | ||
@@ -42,2 +43,3 @@ * or as the result of dragging). If you want to change the coordinates of some object in the clusterer, | ||
this.parentChange = new EventEmitter(); | ||
this._sub = new Subscription(); | ||
} | ||
@@ -64,10 +66,30 @@ ngOnChanges(changes) { | ||
this._clusterer = clusterer; | ||
this.placemarks.forEach((p) => { | ||
clusterer.add(p.initPlacemark(ymaps, map)); | ||
/** | ||
* Adds new Placemarks to clusterer on changes | ||
*/ | ||
const placemarksSub = this.placemarks.changes | ||
.pipe(startWith(this.placemarks)) | ||
.subscribe((list) => { | ||
list.forEach((placemark) => { | ||
if (!placemark.id) { | ||
clusterer.add(placemark.initPlacemark(ymaps, map, clusterer)); | ||
} | ||
}); | ||
}); | ||
this.geoObjects.forEach((o) => { | ||
clusterer.add(o.initGeoObject(ymaps, map)); | ||
this._sub.add(placemarksSub); | ||
/** | ||
* Adds new GeoObjects to clusterer on changes | ||
*/ | ||
const geoObjectsSub = this.geoObjects.changes | ||
.pipe(startWith(this.geoObjects)) | ||
.subscribe((list) => { | ||
list.forEach((geoObject) => { | ||
if (!geoObject.id) { | ||
clusterer.add(geoObject.initGeoObject(ymaps, map, clusterer)); | ||
} | ||
}); | ||
}); | ||
this._sub.add(geoObjectsSub); | ||
map.geoObjects.add(clusterer); | ||
this._emitEvents(ymaps, clusterer); | ||
this._addEventListeners(ymaps, clusterer); | ||
} | ||
@@ -79,3 +101,3 @@ /** | ||
*/ | ||
_emitEvents(ymaps, clusterer) { | ||
_addEventListeners(ymaps, clusterer) { | ||
this.load.emit({ ymaps, instance: clusterer }); | ||
@@ -95,2 +117,5 @@ // Hint | ||
} | ||
ngOnDestroy() { | ||
this._sub.unsubscribe(); | ||
} | ||
} | ||
@@ -115,2 +140,2 @@ YaClustererComponent.decorators = [ | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieWEtY2x1c3RlcmVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJDOi9Vc2Vycy9yb290L0Rlc2t0b3AvZGV2L2FuZ3VsYXIteWFuZGV4LW1hcHMvcHJvamVjdHMvYW5ndWxhcjgteWFuZGV4LW1hcHMvc3JjLyIsInNvdXJjZXMiOlsibGliL2NvbXBvbmVudHMveWEtY2x1c3RlcmVyL3lhLWNsdXN0ZXJlci5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxlQUFlLEVBQ2YsWUFBWSxFQUNaLEtBQUssRUFFTCxNQUFNLEVBR0wsTUFBTSxlQUFlLENBQUM7QUFFekIsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sd0NBQXdDLENBQUM7QUFDOUUsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sd0NBQXdDLENBQUM7QUFFOUU7Ozs7Ozs7Ozs7Ozs7O0dBY0c7QUFNSCxNQUFNLE9BQU8sb0JBQW9CO0lBa0MvQjtRQXhCQTs7V0FFRztRQUNjLFNBQUksR0FBRyxJQUFJLFlBQVksRUFBYyxDQUFDO1FBQ3ZEOztXQUVHO1FBQ2MsU0FBSSxHQUFHLElBQUksWUFBWSxFQUFVLENBQUM7UUFDbkQ7O1dBRUc7UUFDYyxjQUFTLEdBQUcsSUFBSSxZQUFZLEVBQVUsQ0FBQztRQUN4RDs7V0FFRztRQUNjLGtCQUFhL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eXBlOiBlLm9yaWdpbmFsRXZlbnQudHlwZSwgZXZlbnQ6IGUgfSlcclxuICAgICAgKTtcclxuICB9XHJcblxyXG4gIHB1YmxpYyBuZ09uRGVzdHJveSgpOiB2b2lkIHtcclxuICAgIHRoaXMuX3N1Yi51bnN1YnNjcmliZSgpO1xyXG4gIH1cclxufVxyXG4iXX0= |
@@ -91,17 +91,27 @@ import { Component, EventEmitter, Input, Output } from '@angular/core'; | ||
} | ||
initGeoObject(ymaps, map) { | ||
/** | ||
* Inits GeoObject | ||
* @param ymaps | ||
* @param map | ||
* @param clusterer We need this to control removing entity from Clusterer on Placemark destroy | ||
* `this._clusterer.remove(this._geoObject)`; | ||
* | ||
* @returns GeoObject | ||
*/ | ||
initGeoObject(ymaps, map, clusterer) { | ||
const geoObject = new ymaps.GeoObject(this.feature, this.options); | ||
this.id = generateRandomId(); | ||
this._clusterer = clusterer; | ||
this._geoObject = geoObject; | ||
this._map = map; | ||
this._geoObject = geoObject; | ||
map.geoObjects.add(geoObject); | ||
this._emitEvents(ymaps, geoObject); | ||
this._addEventListeners(ymaps, geoObject); | ||
return geoObject; | ||
} | ||
/** | ||
* Add listeners on placemark events | ||
* Add listeners on geoObject events | ||
* @param ymaps | ||
* @param map | ||
* @param geoObject | ||
*/ | ||
_emitEvents(ymaps, geoObject) { | ||
_addEventListeners(ymaps, geoObject) { | ||
this.load.emit({ ymaps, instance: geoObject }); | ||
@@ -128,2 +138,4 @@ // Baloon | ||
ngOnDestroy() { | ||
var _a; | ||
(_a = this._clusterer) === null || _a === void 0 ? void 0 : _a.remove(this._geoObject); | ||
this._map.geoObjects.remove(this._geoObject); | ||
@@ -151,2 +163,2 @@ } | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieWEtZ2Vvb2JqZWN0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJDOi9Vc2Vycy9yb290L0Rlc2t0b3AvZGV2L2FuZ3VsYXIte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0eXBlOiBlLm9yaWdpbmFsRXZlbnQudHlwZSwgZXZlbnQ6IGUgfSlcclxuICAgICAgKTtcclxuXHJcbiAgICAvLyBNdWx0aXRvdWNoXHJcbiAgICBnZW9PYmplY3QuZXZlbnRzXHJcbiAgICAgIC5hZGQoXHJcbiAgICAgICAgWydtdWx0aXRvdWNoc3RhcnQnLCAnbXVsdGl0b3VjaG1vdmUnLCAnbXVsdGl0b3VjaGVuZCddLFxyXG4gICAgICAgIChlOiBhbnkpID0+IHRoaXMubXVsdGl0b3VjaC5lbWl0KHsgeW1hcHMsIGluc3RhbmNlOiBnZW9PYmplY3QsIHR5cGU6IGUub3JpZ2luYWxFdmVudC50eXBlLCBldmVudDogZSB9KVxyXG4gICAgICApO1xyXG4gIH1cclxuXHJcbiAgcHVibGljIG5nT25EZXN0cm95KCk6IHZvaWQge1xyXG4gICAgdGhpcy5fY2x1c3RlcmVyPy5yZW1vdmUodGhpcy5fZ2VvT2JqZWN0KTtcclxuICAgIHRoaXMuX21hcC5nZW9PYmplY3RzLnJlbW92ZSh0aGlzLl9nZW9PYmplY3QpO1xyXG4gIH1cclxufVxyXG4iXX0= |
@@ -76,3 +76,3 @@ import { generateRandomId } from '../../utils/generateRandomId'; | ||
// Events | ||
this._emitEvents(ymaps, map); | ||
this._addEventListeners(ymaps, map); | ||
// Objects | ||
@@ -152,3 +152,4 @@ this._initObjects(ymaps, map); | ||
/** | ||
* Add new objects on ContentChildren changes | ||
* Provides ContentChildren components to API. | ||
* Subscribes on ContentChildren changes to provide them to API. | ||
* @param ymaps | ||
@@ -158,3 +159,3 @@ * @param map | ||
_initObjects(ymaps, map) { | ||
// Placemarks | ||
// Placemarks (async) | ||
const placemarksSub = this.placemarks.changes | ||
@@ -169,3 +170,4 @@ .pipe(startWith(this.placemarks)) | ||
}); | ||
// Multiroutes | ||
this._sub.add(placemarksSub); | ||
// Multiroutes (async) | ||
const multiroutesSub = this.multiroutes.changes | ||
@@ -180,3 +182,4 @@ .pipe(startWith(this.multiroutes)) | ||
}); | ||
// GeoObjects | ||
this._sub.add(multiroutesSub); | ||
// GeoObjects (async) | ||
const geoObjectsSub = this.geoObjects.changes | ||
@@ -191,13 +194,11 @@ .pipe(startWith(this.geoObjects)) | ||
}); | ||
// Controls | ||
this._sub.add(geoObjectsSub); | ||
// Controls (not async) | ||
this.controls.forEach((control) => { | ||
control.initControl(ymaps, map); | ||
}); | ||
// Clusterers | ||
// Clusterers (not async) | ||
this.clusterers.forEach((clusterer) => { | ||
clusterer.initClusterer(ymaps, map); | ||
}); | ||
this._sub.add(placemarksSub); | ||
this._sub.add(multiroutesSub); | ||
this._sub.add(geoObjectsSub); | ||
} | ||
@@ -209,3 +210,3 @@ /** | ||
*/ | ||
_emitEvents(ymaps, map) { | ||
_addEventListeners(ymaps, map) { | ||
this.load.emit({ ymaps, instance: map }); | ||
@@ -265,2 +266,2 @@ // Action | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieWEtbWFwLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJDOi9Vc2Vycy9yb290L0Rlc2t0b3AvZGV2L2FuZ3VsYXIteWFuZGV4LW1hcHMvcHJvamVjdHMvYW5ndWxhcjgteWFuZGV4LW1hcHMvc3JjLyIsInNvdXJjZXMiOlsibGliL2NvbXBvbmVudHMveWEtbWFwL3lhLW1hcC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sOEJBQThCLENBQUM7QUFFaEUsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLHNDQUFzQyxDQUFDO0FBQ3JFLE9BQU8sRUFBRSxTQUFTLEVBQUUsSUFBSSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDakQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUNwQyxPQUFPLEVBQUUsb0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HJcbiAgICAgICk7XHJcblxyXG4gICAgLy8gQmFsb29uXHJcbiAgICBtYXAuZXZlbnRzXHJcbiAgICAgIC5hZGQoXHJcbiAgICAgICAgWydiYWxsb29ub3BlbicsICdiYWxsb29uY2xvc2UnXSxcclxuICAgICAgICAoZTogYW55KSA9PiB0aGlzLmJhbG9vbi5lbWl0KHsgeW1hcHMsIGluc3RhbmNlOiBtYXAsIHR5cGU6IGUub3JpZ2luYWxFdmVudC50eXBlLCBldmVudDogZSB9KVxyXG4gICAgICApO1xyXG5cclxuICAgIC8vIENsaWNrXHJcbiAgICBtYXAuZXZlbnRzXHJcbiAgICAgIC5hZGQoXHJcbiAgICAgICAgWydjbGljaycsICdkYmxjbGljayddLFxyXG4gICAgICAgIChlOiBhbnkpID0+IHRoaXMueWFjbGljay5lbWl0KHsgeW1hcHMsIGluc3RhbmNlOiBtYXAsIHR5cGU6IGUub3JpZ2luYWxFdmVudC50eXBlLCBldmVudDogZSB9KVxyXG4gICAgICApO1xyXG5cclxuICAgIC8vIEhpbnRcclxuICAgIG1hcC5ldmVudHNcclxuICAgICAgLmFkZChcclxuICAgICAgICBbJ2hpbnRvcGVuJywgJ2hpbnRjbG9zZSddLFxyXG4gICAgICAgIChlOiBhbnkpID0+IHRoaXMuaGludC5lbWl0KHsgeW1hcHMsIGluc3RhbmNlOiBtYXAsIHR5cGU6IGUub3JpZ2luYWxFdmVudC50eXBlLCBldmVudDogZSB9KVxyXG4gICAgICApO1xyXG5cclxuICAgIC8vIE1vdXNlXHJcbiAgICBtYXAuZXZlbnRzXHJcbiAgICAgIC5hZGQoXHJcbiAgICAgICAgWydtb3VzZWRvd24nLCAnbW91c2VlbnRlcicsICdtb3VzZWxlYXZlJywgJ21vdXNlbW92ZScsICdtb3VzZXVwJ10sXHJcbiAgICAgICAgKGU6IGFueSkgPT4gdGhpcy5tb3VzZS5lbWl0KHsgeW1hcHMsIGluc3RhbmNlOiBtYXAsIHR5cGU6IGUub3JpZ2luYWxFdmVudC50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7XHJcblxyXG4gICAgLy8gTW91c2VcclxuICAgIG1hcC5ldmVudHNcclxuICAgICAgLmFkZChcclxuICAgICAgICBbJ21vdXNlZG93bicsICdtb3VzZWVudGVyJywgJ21vdXNlbGVhdmUnLCAnbW91c2Vtb3ZlJywgJ21vdXNldXAnXSxcclxuICAgICAgICAoZTogYW55KSA9PiB0aGlzLm1vdXNlLmVtaXQoeyB5bWFwcywgaW5zdGFuY2U6IG1hcCwgdHlwZTogZS5vcmlnaW5hbEV2ZW50LnR5cGUsIGV2ZW50OiBlIH0pXHJcbiAgICAgICk7XHJcblxyXG4gICAgLy8gTXVsdGl0b3VjaFxyXG4gICAgbWFwLmV2ZW50c1xyXG4gICAgICAuYWRkKFxyXG4gICAgICAgIFsnbXVsdGl0b3VjaHN0YXJ0JywgJ211bHRpdG91Y2htb3ZlJywgJ211bHRpdG91Y2hlbmQnXSxcclxuICAgICAgICAoZTogYW55KSA9PiB0aGlzLm11bHRpdG91Y2guZW1pdCh7IHltYXBzLCBpbnN0YW5jZTogbWFwLCB0eXBlOiBlLm9yaWdpbmFsRXZlbnQudHlwZSwgZXZlbnQ6IGUgfSlcclxuICAgICAgKTtcclxuICB9XHJcblxyXG4gIHB1YmxpYyBuZ09uRGVzdHJveSgpOiB2b2lkIHtcclxuICAgIHRoaXMuX3N1Yi51bnN1YnNjcmliZSgpO1xyXG4gIH1cclxufVxyXG4iXX0= |
@@ -87,10 +87,10 @@ import { Component, EventEmitter, Input, Output } from '@angular/core'; | ||
map.geoObjects.add(multiroute); | ||
this._emitEvents(ymaps, multiroute); | ||
this._addEventListeners(ymaps, multiroute); | ||
} | ||
/** | ||
* Add listeners on placemark events | ||
* Add listeners on multiroute events | ||
* @param ymaps | ||
* @param map | ||
*/ | ||
_emitEvents(ymaps, multiroute) { | ||
_addEventListeners(ymaps, multiroute) { | ||
this.load.emit({ ymaps, instance: multiroute }); | ||
@@ -136,2 +136,2 @@ // Activeroutechange | ||
}; | ||
//# sourceMappingURL=data:application/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LFxyXG4gICAgICAgIChlOiBhbnkpID0+IHRoaXMubW91c2UuZW1pdCh7IHltYXBzLCBpbnN0YW5jZTogbXVsdGlyb3V0ZSwgdHlwZTogZS5vcmlnaW5hbEV2ZW50LnR5cGUsIGV2ZW50OiBlIH0pXHJcbiAgICAgICk7XHJcblxyXG4gICAgLy8gTXVsdGl0b3VjaFxyXG4gICAgbXVsdGlyb3V0ZS5ldmVudHNcclxuICAgICAgLmFkZChcclxuICAgICAgICBbJ211bHRpdG91Y2hzdGFydCcsICdtdWx0aXRvdWNobW92ZScsICdtdWx0aXRvdWNoZW5kJ10sXHJcbiAgICAgICAgKGU6IGFueSkgPT4gdGhpcy5tdWx0aXRvdWNoLmVtaXQoeyB5bWFwcywgaW5zdGFuY2U6IG11bHRpcm91dGUsIHR5cGU6IGUub3JpZ2luYWxFdmVudC50eXBlLCBldmVudDogZSB9KVxyXG4gICAgICApO1xyXG4gIH1cclxuXHJcbiAgcHVibGljIG5nT25EZXN0cm95KCk6IHZvaWQge1xyXG4gICAgdGhpcy5fbWFwLmdlb09iamVjdHMucmVtb3ZlKHRoaXMuX211bHRpcm91dGUpO1xyXG4gIH1cclxufVxyXG4iXX0= |
@@ -87,11 +87,11 @@ import { Component, EventEmitter, Input, Output, ViewChild } from '@angular/core'; | ||
this._player = player; | ||
this.emitEvents(ymaps, player); | ||
this._addEventListeners(ymaps, player); | ||
}); | ||
} | ||
/** | ||
* Emit events | ||
* Add listeners on panorama events | ||
* @param ymaps | ||
* @param player Player instance | ||
* @param player | ||
*/ | ||
emitEvents(ymaps, player) { | ||
_addEventListeners(ymaps, player) { | ||
this.load.emit({ ymaps, instance: player }); | ||
@@ -129,2 +129,2 @@ // Direction | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieWEtcGFub3JhbWEuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IkM6L1VzZXJzL3Jvb3QvRGVza3RvcC9kZXYvYW5ndWxh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MubG9hZC5lbWl0KHsgeW1hcHMsIGluc3RhbmNlOiBwbGF5ZXIgfSk7XHJcblxyXG4gICAgLy8gRGlyZWN0aW9uXHJcbiAgICBwbGF5ZXIuZXZlbnRzXHJcbiAgICAgIC5hZGQoXHJcbiAgICAgICAgJ2RpcmVjdGlvbmNoYW5nZScsXHJcbiAgICAgICAgKGU6IGFueSkgPT4gdGhpcy5kaXJlY3Rpb24uZW1pdCh7IHltYXBzLCBpbnN0YW5jZTogcGxheWVyLCB0eXBlOiBlLm9yaWdpbmFsRXZlbnQudHlwZSwgZXZlbnQ6IGUgfSlcclxuICAgICAgKTtcclxuXHJcbiAgICAvLyBGdWxsc2NyZWVuXHJcbiAgICBwbGF5ZXIuZXZlbnRzXHJcbiAgICAgIC5hZGQoXHJcbiAgICAgICAgWydmdWxsc2NyZWVuZW50ZXInLCAnZnVsbHNjcmVlbmV4aXQnXSxcclxuICAgICAgICAoZTogYW55KSA9PiB0aGlzLmZ1bGxzY3JlZW4uZW1pdCh7IHltYXBzLCBpbnN0YW5jZTogcGxheWVyLCB0eXBlOiBlLm9yaWdpbmFsRXZlbnQudHlwZSwgZXZlbnQ6IGUgfSlcclxuICAgICAgKTtcclxuXHJcbiAgICAvLyBNYXJrZXJcclxuICAgIHBsYXllci5ldmVudHNcclxuICAgICAgLmFkZChcclxuICAgICAgICBbJ21hcmtlcmNvbGxhcHNlJywgJ21hcmtlcmV4cGFuZCcsICdtYXJrZXJtb3VzZWVudGVyJywgJ21hcmtlcm1vdXNlbGVhdmUnXSxcclxuICAgICAgICAoZTogYW55KSA9PiB0aGlzLm1hcmtlci5lbWl0KHsgeW1hcHMsIGluc3RhbmNlOiBwbGF5ZXIsIHR5cGU6IGUub3JpZ2luYWxFdmVudC50eXBlLCBldmVudDogZSB9KVxyXG4gICAgICApO1xyXG4gIH1cclxufVxyXG4iXX0= |
@@ -51,3 +51,3 @@ import { Component, EventEmitter, Input, Output } from '@angular/core'; | ||
_configPlacemark(changes) { | ||
const placemark = this.placemark; | ||
const placemark = this._placemark; | ||
if (!placemark) | ||
@@ -72,9 +72,19 @@ return; | ||
} | ||
initPlacemark(ymaps, map) { | ||
/** | ||
* Inits placemark | ||
* @param ymaps | ||
* @param map | ||
* @param clusterer We need this to control removing entity from Clusterer on Placemark destroy | ||
* `this._clusterer.remove(this.placemark)`; | ||
* | ||
* @returns Placemark | ||
*/ | ||
initPlacemark(ymaps, map, clusterer) { | ||
const placemark = new ymaps.Placemark(this.geometry, this.properties, this.options); | ||
this.id = generateRandomId(); | ||
this._clusterer = clusterer; | ||
this._map = map; | ||
this.placemark = placemark; | ||
this._placemark = placemark; | ||
map.geoObjects.add(placemark); | ||
this._emitEvents(ymaps, placemark); | ||
this._addEventListeners(ymaps, placemark); | ||
return placemark; | ||
@@ -87,3 +97,3 @@ } | ||
*/ | ||
_emitEvents(ymaps, placemark) { | ||
_addEventListeners(ymaps, placemark) { | ||
this.load.emit({ ymaps, instance: placemark }); | ||
@@ -110,3 +120,5 @@ // Baloon | ||
ngOnDestroy() { | ||
this._map.geoObjects.remove(this.placemark); | ||
var _a; | ||
(_a = this._clusterer) === null || _a === void 0 ? void 0 : _a.remove(this._placemark); | ||
this._map.geoObjects.remove(this._placemark); | ||
} | ||
@@ -134,2 +146,2 @@ } | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieWEtcGxhY2VtYXJrLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJDOi9Vc2Vycy9yb290L0Rlc2t0b3AvZGV2L2FuZ3VsYXIteWFuZGV4LW1hcHMvcHJvamVjdHMvYW5ndWxhcjgteWFuZGV4LW1hcHMvc3JjLyIsInNvdXJjZXMiOlsibGliL2NvbXBvbmVudHMveWEtcGxhY2VtYXJrL3lhLXBsYWNlbWFyay5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFNBQVMsRUFDVCxZQUFZL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sdXN0ZXJlcj8ucmVtb3ZlKHRoaXMuX3BsYWNlbWFyayk7XHJcbiAgICB0aGlzLl9tYXAuZ2VvT2JqZWN0cy5yZW1vdmUodGhpcy5fcGxhY2VtYXJrKTtcclxuICB9XHJcbn1cclxuIl19 |
import { DOCUMENT, CommonModule } from '@angular/common'; | ||
import { InjectionToken, EventEmitter, Component, Input, Output, ContentChildren, ɵɵdefineInjectable, ɵɵinject, Injectable, Optional, Inject, ViewChild, NgModule } from '@angular/core'; | ||
import { from, fromEvent, Subscription } from 'rxjs'; | ||
import { map, switchMap, take, startWith } from 'rxjs/operators'; | ||
import { startWith, map, switchMap, take } from 'rxjs/operators'; | ||
import { Subscription, from, fromEvent } from 'rxjs'; | ||
@@ -109,17 +109,27 @@ const YA_MAP_CONFIG = new InjectionToken('YA_MAP_CONFIG'); | ||
} | ||
initGeoObject(ymaps, map) { | ||
/** | ||
* Inits GeoObject | ||
* @param ymaps | ||
* @param map | ||
* @param clusterer We need this to control removing entity from Clusterer on Placemark destroy | ||
* `this._clusterer.remove(this._geoObject)`; | ||
* | ||
* @returns GeoObject | ||
*/ | ||
initGeoObject(ymaps, map, clusterer) { | ||
const geoObject = new ymaps.GeoObject(this.feature, this.options); | ||
this.id = generateRandomId(); | ||
this._clusterer = clusterer; | ||
this._geoObject = geoObject; | ||
this._map = map; | ||
this._geoObject = geoObject; | ||
map.geoObjects.add(geoObject); | ||
this._emitEvents(ymaps, geoObject); | ||
this._addEventListeners(ymaps, geoObject); | ||
return geoObject; | ||
} | ||
/** | ||
* Add listeners on placemark events | ||
* Add listeners on geoObject events | ||
* @param ymaps | ||
* @param map | ||
* @param geoObject | ||
*/ | ||
_emitEvents(ymaps, geoObject) { | ||
_addEventListeners(ymaps, geoObject) { | ||
this.load.emit({ ymaps, instance: geoObject }); | ||
@@ -146,2 +156,4 @@ // Baloon | ||
ngOnDestroy() { | ||
var _a; | ||
(_a = this._clusterer) === null || _a === void 0 ? void 0 : _a.remove(this._geoObject); | ||
this._map.geoObjects.remove(this._geoObject); | ||
@@ -218,3 +230,3 @@ } | ||
_configPlacemark(changes) { | ||
const placemark = this.placemark; | ||
const placemark = this._placemark; | ||
if (!placemark) | ||
@@ -239,9 +251,19 @@ return; | ||
} | ||
initPlacemark(ymaps, map) { | ||
/** | ||
* Inits placemark | ||
* @param ymaps | ||
* @param map | ||
* @param clusterer We need this to control removing entity from Clusterer on Placemark destroy | ||
* `this._clusterer.remove(this.placemark)`; | ||
* | ||
* @returns Placemark | ||
*/ | ||
initPlacemark(ymaps, map, clusterer) { | ||
const placemark = new ymaps.Placemark(this.geometry, this.properties, this.options); | ||
this.id = generateRandomId(); | ||
this._clusterer = clusterer; | ||
this._map = map; | ||
this.placemark = placemark; | ||
this._placemark = placemark; | ||
map.geoObjects.add(placemark); | ||
this._emitEvents(ymaps, placemark); | ||
this._addEventListeners(ymaps, placemark); | ||
return placemark; | ||
@@ -254,3 +276,3 @@ } | ||
*/ | ||
_emitEvents(ymaps, placemark) { | ||
_addEventListeners(ymaps, placemark) { | ||
this.load.emit({ ymaps, instance: placemark }); | ||
@@ -277,3 +299,5 @@ // Baloon | ||
ngOnDestroy() { | ||
this._map.geoObjects.remove(this.placemark); | ||
var _a; | ||
(_a = this._clusterer) === null || _a === void 0 ? void 0 : _a.remove(this._placemark); | ||
this._map.geoObjects.remove(this._placemark); | ||
} | ||
@@ -304,4 +328,3 @@ } | ||
* Component, geo object clusterer. Clusterizes objects in the visible area of the map. | ||
* If the object does not fall within the visible area of the map, | ||
* it will not be added to the map. | ||
* If the object does not fall within the visible area of the map, it will not be added to the map. | ||
* Note, that the clusterer does not react to changing the coordinates of objects (either programmatically, | ||
@@ -340,2 +363,3 @@ * or as the result of dragging). If you want to change the coordinates of some object in the clusterer, | ||
this.parentChange = new EventEmitter(); | ||
this._sub = new Subscription(); | ||
} | ||
@@ -362,10 +386,30 @@ ngOnChanges(changes) { | ||
this._clusterer = clusterer; | ||
this.placemarks.forEach((p) => { | ||
clusterer.add(p.initPlacemark(ymaps, map)); | ||
/** | ||
* Adds new Placemarks to clusterer on changes | ||
*/ | ||
const placemarksSub = this.placemarks.changes | ||
.pipe(startWith(this.placemarks)) | ||
.subscribe((list) => { | ||
list.forEach((placemark) => { | ||
if (!placemark.id) { | ||
clusterer.add(placemark.initPlacemark(ymaps, map, clusterer)); | ||
} | ||
}); | ||
}); | ||
this.geoObjects.forEach((o) => { | ||
clusterer.add(o.initGeoObject(ymaps, map)); | ||
this._sub.add(placemarksSub); | ||
/** | ||
* Adds new GeoObjects to clusterer on changes | ||
*/ | ||
const geoObjectsSub = this.geoObjects.changes | ||
.pipe(startWith(this.geoObjects)) | ||
.subscribe((list) => { | ||
list.forEach((geoObject) => { | ||
if (!geoObject.id) { | ||
clusterer.add(geoObject.initGeoObject(ymaps, map, clusterer)); | ||
} | ||
}); | ||
}); | ||
this._sub.add(geoObjectsSub); | ||
map.geoObjects.add(clusterer); | ||
this._emitEvents(ymaps, clusterer); | ||
this._addEventListeners(ymaps, clusterer); | ||
} | ||
@@ -377,3 +421,3 @@ /** | ||
*/ | ||
_emitEvents(ymaps, clusterer) { | ||
_addEventListeners(ymaps, clusterer) { | ||
this.load.emit({ ymaps, instance: clusterer }); | ||
@@ -393,2 +437,5 @@ // Hint | ||
} | ||
ngOnDestroy() { | ||
this._sub.unsubscribe(); | ||
} | ||
} | ||
@@ -621,10 +668,10 @@ YaClustererComponent.decorators = [ | ||
map.geoObjects.add(multiroute); | ||
this._emitEvents(ymaps, multiroute); | ||
this._addEventListeners(ymaps, multiroute); | ||
} | ||
/** | ||
* Add listeners on placemark events | ||
* Add listeners on multiroute events | ||
* @param ymaps | ||
* @param map | ||
*/ | ||
_emitEvents(ymaps, multiroute) { | ||
_addEventListeners(ymaps, multiroute) { | ||
this.load.emit({ ymaps, instance: multiroute }); | ||
@@ -736,3 +783,3 @@ // Activeroutechange | ||
// Events | ||
this._emitEvents(ymaps, map); | ||
this._addEventListeners(ymaps, map); | ||
// Objects | ||
@@ -812,3 +859,4 @@ this._initObjects(ymaps, map); | ||
/** | ||
* Add new objects on ContentChildren changes | ||
* Provides ContentChildren components to API. | ||
* Subscribes on ContentChildren changes to provide them to API. | ||
* @param ymaps | ||
@@ -818,3 +866,3 @@ * @param map | ||
_initObjects(ymaps, map) { | ||
// Placemarks | ||
// Placemarks (async) | ||
const placemarksSub = this.placemarks.changes | ||
@@ -829,3 +877,4 @@ .pipe(startWith(this.placemarks)) | ||
}); | ||
// Multiroutes | ||
this._sub.add(placemarksSub); | ||
// Multiroutes (async) | ||
const multiroutesSub = this.multiroutes.changes | ||
@@ -840,3 +889,4 @@ .pipe(startWith(this.multiroutes)) | ||
}); | ||
// GeoObjects | ||
this._sub.add(multiroutesSub); | ||
// GeoObjects (async) | ||
const geoObjectsSub = this.geoObjects.changes | ||
@@ -851,13 +901,11 @@ .pipe(startWith(this.geoObjects)) | ||
}); | ||
// Controls | ||
this._sub.add(geoObjectsSub); | ||
// Controls (not async) | ||
this.controls.forEach((control) => { | ||
control.initControl(ymaps, map); | ||
}); | ||
// Clusterers | ||
// Clusterers (not async) | ||
this.clusterers.forEach((clusterer) => { | ||
clusterer.initClusterer(ymaps, map); | ||
}); | ||
this._sub.add(placemarksSub); | ||
this._sub.add(multiroutesSub); | ||
this._sub.add(geoObjectsSub); | ||
} | ||
@@ -869,3 +917,3 @@ /** | ||
*/ | ||
_emitEvents(ymaps, map) { | ||
_addEventListeners(ymaps, map) { | ||
this.load.emit({ ymaps, instance: map }); | ||
@@ -1007,11 +1055,11 @@ // Action | ||
this._player = player; | ||
this.emitEvents(ymaps, player); | ||
this._addEventListeners(ymaps, player); | ||
}); | ||
} | ||
/** | ||
* Emit events | ||
* Add listeners on panorama events | ||
* @param ymaps | ||
* @param player Player instance | ||
* @param player | ||
*/ | ||
emitEvents(ymaps, player) { | ||
_addEventListeners(ymaps, player) { | ||
this.load.emit({ ymaps, instance: player }); | ||
@@ -1018,0 +1066,0 @@ // Direction |
@@ -1,2 +0,2 @@ | ||
import { EventEmitter, OnChanges, QueryList, SimpleChanges } from '@angular/core'; | ||
import { EventEmitter, OnChanges, OnDestroy, QueryList, SimpleChanges } from '@angular/core'; | ||
import { IEvent, ILoadEvent } from '../../models/models'; | ||
@@ -7,4 +7,3 @@ import { YaGeoObjectComponent } from '../ya-geoobject/ya-geoobject.component'; | ||
* Component, geo object clusterer. Clusterizes objects in the visible area of the map. | ||
* If the object does not fall within the visible area of the map, | ||
* it will not be added to the map. | ||
* If the object does not fall within the visible area of the map, it will not be added to the map. | ||
* Note, that the clusterer does not react to changing the coordinates of objects (either programmatically, | ||
@@ -21,3 +20,3 @@ * or as the result of dragging). If you want to change the coordinates of some object in the clusterer, | ||
*/ | ||
export declare class YaClustererComponent implements OnChanges { | ||
export declare class YaClustererComponent implements OnDestroy, OnChanges { | ||
placemarks: QueryList<YaPlacemarkComponent>; | ||
@@ -50,2 +49,3 @@ geoObjects: QueryList<YaGeoObjectComponent>; | ||
parentChange: EventEmitter<IEvent>; | ||
private _sub; | ||
private _clusterer; | ||
@@ -66,3 +66,4 @@ constructor(); | ||
*/ | ||
private _emitEvents; | ||
private _addEventListeners; | ||
ngOnDestroy(): void; | ||
} |
@@ -50,4 +50,5 @@ import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core'; | ||
id: string; | ||
private _clusterer; | ||
private _geoObject; | ||
private _map; | ||
private _geoObject; | ||
constructor(); | ||
@@ -69,10 +70,19 @@ ngOnInit(): void; | ||
private _logErrors; | ||
initGeoObject(ymaps: any, map: any): any; | ||
/** | ||
* Add listeners on placemark events | ||
* Inits GeoObject | ||
* @param ymaps | ||
* @param map | ||
* @param clusterer We need this to control removing entity from Clusterer on Placemark destroy | ||
* `this._clusterer.remove(this._geoObject)`; | ||
* | ||
* @returns GeoObject | ||
*/ | ||
private _emitEvents; | ||
initGeoObject(ymaps: any, map: any, clusterer?: any): any; | ||
/** | ||
* Add listeners on geoObject events | ||
* @param ymaps | ||
* @param geoObject | ||
*/ | ||
private _addEventListeners; | ||
ngOnDestroy(): void; | ||
} |
@@ -93,3 +93,4 @@ import { IEvent, ILoadEvent } from '../../models/models'; | ||
/** | ||
* Add new objects on ContentChildren changes | ||
* Provides ContentChildren components to API. | ||
* Subscribes on ContentChildren changes to provide them to API. | ||
* @param ymaps | ||
@@ -104,4 +105,4 @@ * @param map | ||
*/ | ||
private _emitEvents; | ||
private _addEventListeners; | ||
ngOnDestroy(): void; | ||
} |
@@ -69,8 +69,8 @@ import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core'; | ||
/** | ||
* Add listeners on placemark events | ||
* Add listeners on multiroute events | ||
* @param ymaps | ||
* @param map | ||
*/ | ||
private _emitEvents; | ||
private _addEventListeners; | ||
ngOnDestroy(): void; | ||
} |
@@ -59,7 +59,7 @@ import { ElementRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core'; | ||
/** | ||
* Emit events | ||
* Add listeners on panorama events | ||
* @param ymaps | ||
* @param player Player instance | ||
* @param player | ||
*/ | ||
emitEvents(ymaps: any, player: any): void; | ||
_addEventListeners(ymaps: any, player: any): void; | ||
} |
@@ -52,4 +52,5 @@ import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; | ||
id: string; | ||
private _clusterer; | ||
private _map; | ||
placemark: any; | ||
private _placemark; | ||
constructor(); | ||
@@ -65,4 +66,13 @@ ngOnInit(): void; | ||
private _logErrors; | ||
initPlacemark(ymaps: any, map: any): any; | ||
/** | ||
* Inits placemark | ||
* @param ymaps | ||
* @param map | ||
* @param clusterer We need this to control removing entity from Clusterer on Placemark destroy | ||
* `this._clusterer.remove(this.placemark)`; | ||
* | ||
* @returns Placemark | ||
*/ | ||
initPlacemark(ymaps: any, map: any, clusterer?: any): any; | ||
/** | ||
* Add listeners on placemark events | ||
@@ -72,4 +82,4 @@ * @param ymaps | ||
*/ | ||
private _emitEvents; | ||
private _addEventListeners; | ||
ngOnDestroy(): void; | ||
} |
{ | ||
"name": "angular8-yandex-maps", | ||
"version": "10.1.1", | ||
"version": "10.2.0", | ||
"description": "Angular components for Yandex.Maps", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
522591
4113