How can I call the function inside of this event?
myfunction() {
alert('bla bla!');
}
this.map.on('moveend', function() {
console.log('moveend :: ' + this.getCenter());
this.myfunction(); // => ERROR TypeError: this.myfunction is not a function
});