Hey Richard, 2009/11/24 Richard Ulrich <[email protected]>: > is it possible to give an order in which the java script libraries are > loaded with WApplication::require?
They now are ordered as they are chronologically called. > I'm trying to extend the WGoogleMap with some scripts from > http://www.bdcc.co.uk/Gmaps/BdccGmapBits.htm > > But firebug tells me that the google maps classes used in these scripts > are not defined. So I suspect these scripts are loaded before the google > maps script. > > that's how I try: > > WGoogleMapEx::WGoogleMapEx(WContainerWidget *parent) > : WGoogleMap(parent) // google maps script is 'required' here > { > WApplication *app = WApplication::instance(); > > app->require("/googlemaps_addons/BDCCCircle.js"); > app->require("/googlemaps_addons/BDCCArrow.js"); > } > > I modified the script to use google.maps.Overlay instead of GOverlay, > but the result is the same. It really should work. If you inspect with Firebug in the <head> section, do you see that the order is wrong ? Regards, koen ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
