19 lines
461 B
TypeScript
19 lines
461 B
TypeScript
import { Component, ElementRef, OnInit } from '@angular/core';
|
|
import { Attribution } from 'ol/control';
|
|
|
|
@Component({
|
|
selector: 'aol-attribution',
|
|
template: '<ng-content></ng-content>',
|
|
})
|
|
export class AttributionComponent implements OnInit {
|
|
instance: Attribution;
|
|
html: string;
|
|
|
|
constructor(private elementRef: ElementRef) {}
|
|
|
|
ngOnInit() {
|
|
this.html = this.elementRef.nativeElement.innerHTML;
|
|
this.instance = new Attribution(this);
|
|
}
|
|
}
|