Google maps cordova add event listener - params do not match signature of target


I have a map = new GoogleMap(this.mapElement, mapOptions);

And I am trying to attach an event to it, this.doSomething())

I am referencing this documentation

The error I am receiving is as follows

Supplied parameters do not match any signature of call target.

I understand that I am passing parameters that do not match what the function is looking for, but from the documentation I think I am doing it correctly. What am I doing wrong? Thanks


I also tried this = new GoogleMap(this.mapElement, mapOptions); => {, function(latLng) {

WIth the same error.

I am copying from these docs