I have markers displayed on a map, but I can't figure out how to add an event after the google.maps.InfoWindow() opens the popup marker. I want the user to click on the pop window and then see the details of the results. Thanks for your help.
I have markers displayed on a map, but I can't figure out how to add an event after the google.maps.InfoWindow() opens the popup marker. I want the user to click on the pop window and then see the details of the results. Thanks for your help.
After you execute the open() method on the infowindow then use the fireEvent method on the component (not the google map, the ST Ext.Map)
Mitchell Simoens @LikelyMitch
Modus Create, Senior Frontend Engineer
________________
Need any sort of Ext JS help? Modus Create is here to help!
Check out my GitHub:
https://github.com/mitchellsimoens
Thank you for your response. I'm new to Sencha. Where would I put the firevent in the code snippet below? I basically want the event to be called when someone taps on a specific marker.
var infoWindow = new google.maps.InfoWindow({
content: tooltip
});
google.maps.event.addListener(marker, 'click', function() {
infoWindow.open(myMap.getMap(), marker);
});
Right after
Code:infoWindow.open(myMap.getMap(), marker);
Mitchell Simoens @LikelyMitch
Modus Create, Senior Frontend Engineer
________________
Need any sort of Ext JS help? Modus Create is here to help!
Check out my GitHub:
https://github.com/mitchellsimoens
Sorry, but the part I'm stuck on is "use the fireEvent method on the component (not the google map, the ST Ext.Map)". I can't figure out how to use the fireEvent method.
Here is a sample:
The 'eventname' is the event you want to fire. arg1, arg2 are just arguments you want to send, this can be any number of arguments.Code:component.fireEvent('eventname', arg1, arg2);
Mitchell Simoens @LikelyMitch
Modus Create, Senior Frontend Engineer
________________
Need any sort of Ext JS help? Modus Create is here to help!
Check out my GitHub:
https://github.com/mitchellsimoens