We’re migrating from the Google V2 maps API and I’ve had some trouble converting this line to V3:
GEvent.bindDom(this.DOMItem, 'mousedown', this, this._customFunction);
I know about google.maps.event.addDomListener but is there a way to pass it the this parameter, as bindDom had in V2? Otherwise our custom function can’t access the object that created the binding. That object has properties in it we need in the custom function. Maybe I’m missing something obvious?
You can just use javascript’s
callmethod.In the scope of
_customFunction,thiswill be set to whatever you pass as the first argument tocall.