1
我想在科尔多瓦谷歌地图在Framework7 HTML整合,但其不显示任何地图,虽然我已经写了类似的代码为正常的HTML页面,并在那里工作。任何帮助将不胜感激。科尔多瓦地图不加载在Framework7
// Wait for device API libraries to load
//
document.addEventListener("deviceready", onDeviceReady, false);
// device APIs are available
//
function onDeviceReady() {
//navigator.geolocation.getCurrentPosition(onSuccess, onError);
var mapDiv = document.getElementById('map_canvas');
var GOOGLE = new plugin.google.maps.LatLng(37.422858, -122.085065);
var map = plugin.google.maps.Map.getMap(mapDiv);
map.addEventListener(plugin.google.maps.event.MAP_READY, function() {
map.setCenter(GOOGLE);
});
}
</script>