So I'm having some issues while using openlayers gaining access to my fields within the inner scopes of function calls like so.
method() {
this.myField.on('click', function (args) {
this.myFieldThatIsntInScope(evt.pixel, function (args) {
});
});
}
The second field of this.myFieldThatIsntInScope is the one in question where it appears to be out of scope, and then any fields within that function are also out of scope.
Is there a way to scope these in, I tried assigning the various fields into variables within the code blocks parent level but seems to cause issues with the mapping object from ol that I'm using.