Hello I have an issue with a compass widget, the issue is that even though I rotate the map and the click on the compass it doesn't rotate back so that north is up. This is my code:
(my typescript):
export class AppComponent implements OnInit{
ViewChild('mapViewNode', { static: true }) private mapViewEl!: ElementRef;
map!: Map;
mapView!: MapView;
compass!: Compass;
ngOnInit() {
this.initializeMap();
}
initializeMap(): MapView {
this.map = new Map({
basemap: 'hybrid',
});
this.mapView = new MapView({
container: this.mapViewEl.nativeElement,
map: this.map,
zoom: 7,
center: [17, 44.3],
});
let compass = new Compass({
view: this.mapView,
});
this.mapView.ui.add(compass, 'top-left');
return this.mapView;
}
this is my html:
<div #mapViewNode></div>
this is the example:

I click on the compass but nothing happens, any idea why?