Hi
I'm defining a Callbackfunction when creating my Gmarkers:
var marker = new MyMarker(new GPoint(row.longitude,row.latitude),
markerOptions);
GEvent.addListener(marker, "click", onClick);
The markers are then all being stored in an array, so that I can draw
the points to the map and have a list on the left hand side listing
all the points in a table (same as on the map).
I added some click listeners to the table that call the following
function:
function openwin(){
console.log("open bubble window for "+ this.name+" ");
console.log(me.list[this.name].callback);
me.list[this.name].callback.call(me.list[this.name], true);
}
So, I click on a row and the openwin function is called. this.name is
the index of the gmarker object in the array.
What I actually want to do this just opening the Bubble Info window of
the marker. So calling the markers onClick-Callback function.
I found somewhere this callback.call stuff... but it doesn't seem to
work. Any suggestions?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---