hi,
I have to load different types of map depending on the user. I can't
use gwt-maps API because its only supports Google Maps API version 2
and i need to load OpenLayers in some case. I used to load google map
or openLayers by the static way but now i need to load them
dynamically (so from the JAVA code depending of the user database
parameters).
I saw many times on internet that you can load dynamically script from
JAVA code, i tried and its work but not with a script with a URL value
for the "src" argument.
I tried this :
Element script1 = DOM.createElement("script");
script1.setAttribute("type", "text/javascript");
script1.setAttribute("src", URL);
RootPanel.getBodyElement().appendChild(script1);
Regards,
Vincent
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.