Still have the problem with the key... Looking at the AjaxLoader code
I see
public static void loadApi(final String api, final String version,
final AjaxLoaderOptions settings) {
// Initialize the API if it hasn't already been initialized.
init();
.. is it correct? in case of google maps api isn't the method with the
key parameter to be called?
however, even if i commetn the this line, i have the same behaviour...
warning popup saying to retrieve another key, then application
correctly loaded (cache cleaned, tomcat restarted etc etc)
In MainEntryPoint, onModuleLoad() method i have the following code:
String key =
"ABQIAAAAUO34edsqljM2WeuC9Nog6RRIpen0A0_SeI0jb_jiblj7dPOYwRS1JBN0gnB9ziM9tkwB36NWjwJWFg";
AjaxLoader.init(key);
AjaxLoaderOptions options = AjaxLoaderOptions.newInstance();
options.setCallback(new Runnable() {
public void run() {
..... code using MapWidget object
}
});
AjaxLoader.loadApi("maps", "2", options);
then in html this:
<html>
<head>
<!--meta name='gwt:module'
content='tsf.ccn.Main=tsf.ccn.Main'-->
<title>CCN_Browser, versione 6.0.0.0</title>
<link rel="shortcut icon" href="tsf.ccn.Main/images/
favicon.ico" />
<!--170209Miki: importo script Visualization -->
<script type="text/javascript" src="
http://www.google.com/
jsapi"></script>
<meta name='gwt:module' content='tsf.ccn.Main=tsf.ccn.Main'>
<script language="javascript" src="tsf.ccn.Main/
tsf.ccn.Main.nocache.js"></script>
</head>
<body>
<!--script language="javascript" src="tsf.ccn.Main/
tsf.ccn.Main.nocache.js"></-->
</body>
</html>
thx for help,
Michela