Found in GWT: 2.5
ScriptInjector.fromUrl( "http://maps.googleapis.com/maps/api/js?sensor=false&language="+
(lang == null ? "en_US" :lang)).setWindow(ScriptInjector.TOP_WINDOW).setCallback(new
Callback<Void, Exception>(){
public void onFailure(Exception reason)
{
Window.alert("load google maps api failed,all map function will not work.");
}
public void onSuccess(Void result)
{
MapTypeId mapType=MapTypeId.valueOf("...");
}}).inject();
Above code is will throw out exception:
$wnd.google.maps.MapTypeId is undefined
Originally reported on Google Code with ID 7773
Reported by
Alexander.Luya
on 2012-11-08 12:07:28