(changes: SimpleChanges<this>)
| 314 | } |
| 315 | |
| 316 | ngOnChanges(changes: SimpleChanges<this>) { |
| 317 | const {marker, _title, _position, _label, _clickable, _icon, _visible} = this; |
| 318 | |
| 319 | if (marker) { |
| 320 | if (changes['options']) { |
| 321 | marker.setOptions(this._combineOptions()); |
| 322 | } |
| 323 | |
| 324 | if (changes['title'] && _title !== undefined) { |
| 325 | marker.setTitle(_title); |
| 326 | } |
| 327 | |
| 328 | if (changes['position'] && _position) { |
| 329 | marker.setPosition(_position); |
| 330 | } |
| 331 | |
| 332 | if (changes['label'] && _label !== undefined) { |
| 333 | marker.setLabel(_label); |
| 334 | } |
| 335 | |
| 336 | if (changes['clickable'] && _clickable !== undefined) { |
| 337 | marker.setClickable(_clickable); |
| 338 | } |
| 339 | |
| 340 | if (changes['icon'] && _icon) { |
| 341 | marker.setIcon(_icon); |
| 342 | } |
| 343 | |
| 344 | if (changes['visible'] && _visible !== undefined) { |
| 345 | marker.setVisible(_visible); |
| 346 | } |
| 347 | } |
| 348 | } |
| 349 | |
| 350 | ngOnDestroy() { |
| 351 | this.markerInitialized.complete(); |
nothing calls this directly
no test coverage detected