This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$> cordova create HelloMap com.example.myapp HelloMap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$> cordova create HelloMap com.example.myapp HelloMap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var GOOGLE, GOOGLE_TOKYO, GOOGLE_SYDNEY; | |
document.addEventListener("deviceready", function() { | |
//位置を定義 | |
GOOGLE = new plugin.google.maps.LatLng(37.422858, -122.085065); | |
GOOGLE_TOKYO = new plugin.google.maps.LatLng(35.660556,139.729167); | |
GOOGLE_SYDNEY = new plugin.google.maps.LatLng(-33.867487,151.20699); | |
//地図を作成 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//地図のインスタンスを取得します | |
var map = plugin.google.maps.Map.getMap(); | |
//初期化が完了するのを待ちます | |
map.addEventListener(plugin.google.maps.event.MAP_READY, function(map) { | |
//初期化が完了したら地図を表示します | |
map.showDialog(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="cordova.js"></script> | |
<script src="map_close.js"></script> | |
</head> | |
<body> | |
<button id="button">Show the map dialog</button> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="cordova.js"></script> | |
<script src="remove_marker.js"></script> | |
</head> | |
<body> | |
<button id="button1" >Open a map, then add markers</button> | |
<br> | |
<br> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var button = document.getElementById("button"); | |
button.addEventListener("click", function() { | |
console.log("ボタンがクリックされた"); | |
}); | |
button.addEventListener("click", function() { | |
alert("ボタンがクリックされた"); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Temporary folder: /private/tmp/monaca/542d9f2ffd17340e549afe48 | |
Download complete | |
Running command: php /private/tmp/monaca/542d9f2ffd17340e549afe48/ios/scripts/build_ios.php --path /data/monaca_build_module/3.5 --type 'debug' 2>&1 | |
Prepare keychain... | |
1 key imported. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Temporary folder: /private/tmp/monaca/542e33467e2193bf37a27d1c | |
Download complete | |
Running command: php /private/tmp/monaca/542e33467e2193bf37a27d1c/ios/scripts/build_ios.php --path /data/monaca_build_module/3.5 --type 'debug' 2>&1 | |
Prepare keychain... | |
1 key imported. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//------------------------------- | |
// Action: Click the app icon to launch | |
//------------------------------- | |
``` | |
11-04 17:24:20.349: I/ActivityManager(347): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.example.test/com.appgyver.runtime.standalone.MainActivity} from pid 531 | |
11-04 17:24:20.469: D/Launcher(531): send boardcast(com.android.systembar.enable_hide) from launcher2.. | |
11-04 17:24:20.469: D/TabletStatusBar(436): statusbar receive showbar broadcast : com.android.systembar.enable_hide | |
11-04 17:24:20.489: D/com.appgyver.app.SteroidsApplication(6758): SteroidsApplication created | |
11-04 17:24:20.499: D/com.appgyver.android.application.ApplicationActivity(6758): (startUpUrl) -> No startUpUrl present ! | |
11-04 17:24:20.509: D/com.appgyver.ui.ViewStack(6758): Could not find the native css file: android.css from steroids application file path: native-styles/android.css |
OlderNewer