how to do it in angular, primarly how to catch an moveend event in angular using maplibre and send it to a function as argument code in component.html
<mgl-map [center]="initialCenter" [zoom]="[initialZoom]" (load)="loadMap($event)" [style]="'assets/map.style.json'"
(moveEnd)="updateMap($event)">
This above code is written using mapbox and I need to implement this in maplibre, the event has to be sent to updateMap() method in component in order for it to work. component.ts
updateMap(event: { target: Map }) {
console.log('event', event);
const { target } = event;
this.mapFacade.mapChanged(
target.getBounds(),
target.getCenter(),
target.getZoom()
);
}
Using Maplibre I am not able to send the event to upadateMap. Any help would be appreciated.
Here is link to app done using mapbox but I have to implement app using maplibre. https://stackblitz.com/edit/ngrx-mapbox-demo?embed=1&file=src/app/app.component.ts&view=preview