score:2

Accepted answer

indeed as alexander staroselsky noticed callback=initmap is looking for a function initmap on window. you should either make initmap function global or assign the initmap function inside the class to a variable on window object like this:

window.initmap = this.initmap.bind(this);

Related Query

More Query from same tag