3
您可以在頁面加載後在ExtJS 4中加載Google Maps API嗎?在ExtJS 4中動態加載Google Maps API v3 4
您可以在頁面加載後在ExtJS 4中加載Google Maps API嗎?在ExtJS 4中動態加載Google Maps API v3 4
Ext.Loader.loadScriptFile('https://www.google.com/jsapi',function(){
google.load("maps", "3", {
other_params:"sensor=false",
callback : function(){
// Google Maps are loaded. Place your code here
}
});
},Ext.emptyFn,null,false);
可以使用傳遞更多PARAMS的API:
other_params: "sensor=false&libraries=places&key=YOUR_API_KEY"
有關谷歌裝載機的更多信息: https://developers.google.com/loader/