1
私はFramework7 htmlでcordova googleマップを統合しようとしていますが、そこにはマップが表示されません。通常のhtmlページと同様のコードを記述しています。どんな助力も高く評価されます。Cordova Map 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>