10 Feb 2012 8:09 AM #1
Unable to fire events from map view until map view is added to the main view.
I structured my code so that my geolocation methods are in the map view. Since I need geolocation information at startup, I call the geolocation methods in the launch section of my controller. However, if the map is not added to the main view, the fireEvent will not work. The obvious workaround is to add the map to the main view before calling the map methods, but my app startup is already slow and I would prefer not to make it slower.
Is there is another way to get the fireEvent to work from the map view without adding the map to the main view?
10 Feb 2012 8:59 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
You should be able to use fireEvents if the Ext.Map is already created. If the event requires the Google Map rendered then you will need to have it rendered.Mitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
10 Feb 2012 9:39 AM #3