Hi Koen,

is it possible to give an order in which the java script libraries are
loaded with WApplication::require?
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.

Rgds
Richard


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to