Hi,
My code is like below
watchUtils.watch(this.mapView, "zoom", function (zoom) {
this.zoomLevel = zoom;
});
I want to access this.zoomLevel outside the watchUtils block as and when it is triggered.
But it is giving undefined.
PS: I have tried getter setter methods, and this.zoomLevel is declared globally.still facing the issue.
Can anyone suggest the solution?