Hey Richard, 2009/12/23 Richard Ulrich <[email protected]>: > I did some research on the internet. Other people seem to have similar > problems with javascript libraries that depend on other javascript > libraries. It has nothing to do with Wt. > If I remember correctly, the browsers load the script libraries parallel > and serialize only by host. Because the google maps librariy comes from > another host than the additional library, the browser thinks it can load > them both at the same time. There are some lazy loading libraries. But > combining them with Wt seemed to be difficult.
Interesting. I had always imagined that JavaScript really executes in the order of declaration. Do you have a link that suggests a particular solution which you help if it were implemented by Wt itself ? (btw. Wt does strictly serialize JavaScript loading if you are not using a progressive bootstrap: it will delay execution of JavaScript and loading of subsequently inserted JavaScript libraries. So unless you are using a progressive bootstrap, I am still surprised that this problem occurs). > I also tried to extract the relevant parts from the js library and paint > the svg directly in the widget. But didn't get it to work so far. > > So I tried another approach, painting some simple circles as polylines. > That works as long as I have only one google map on the page. But as > soon as I have two or three maps on the same page, no polyline overlays > are displayed at all. That's a different problem though, which I'm going > to inspect soon. > > I thought about using the Wt painting system to draw map overlays, but > haven't had time to investigate. Would that be feasible? Definitely, but then you will need to implement the coordinate mapping in C++ ? 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
