Skip to content

Instantly share code, notes, and snippets.

View wf9a5m75's full-sized avatar
💭
I may be slow to respond.

Masashi Katsumata wf9a5m75

💭
I may be slow to respond.
View GitHub Profile
@wf9a5m75
wf9a5m75 / file0.txt
Created March 15, 2014 01:47
Google Maps Mobile SDKをApache Cordova(PhoneGap)で表示する:Android編 ref: http://qiita.com/wf9a5m75/items/798b847dcd470f8afed9
$> cordova create HelloMap com.example.myapp HelloMap
@wf9a5m75
wf9a5m75 / file0.txt
Created March 17, 2014 17:42
Google Maps Mobile SDKをApache Cordova(PhoneGap)で表示する:iOS編 ref: http://qiita.com/wf9a5m75/items/863287cc99e4622052ca
$> cordova create HelloMap com.example.myapp HelloMap
@wf9a5m75
wf9a5m75 / file0.js
Created March 18, 2014 20:24
マーカーを表示する:Google Maps Mobile SDK / Cordova(PhoneGap) ref: http://qiita.com/wf9a5m75/items/15970e0dd289939082ed
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);
//地図を作成
@wf9a5m75
wf9a5m75 / file0.js
Created March 21, 2014 18:27
地図操作を行う:Google Maps Mobile SDK / Cordova(PhoneGap) ref: http://qiita.com/wf9a5m75/items/4a99b64be25dce27ca0d
//地図のインスタンスを取得します
var map = plugin.google.maps.Map.getMap();
//初期化が完了するのを待ちます
map.addEventListener(plugin.google.maps.event.MAP_READY, function(map) {
//初期化が完了したら地図を表示します
map.showDialog();
});
@wf9a5m75
wf9a5m75 / map_close.html
Last active August 29, 2015 13:59
Example : MAP_CLOSE event (phonegap-goolgemaps-plugin)
<!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>
@wf9a5m75
wf9a5m75 / remove_markers.html
Last active August 29, 2015 14:00
Remove all markers when the map dialog is closed. (phonegap-googlemaps-plugin)
<!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>
var button = document.getElementById("button");
button.addEventListener("click", function() {
console.log("ボタンがクリックされた");
});
button.addEventListener("click", function() {
alert("ボタンがクリックされた");
});
@wf9a5m75
wf9a5m75 / gist:2bfb88a549074f29a97b
Created October 2, 2014 19:39
Monaca ios error
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 &apos;debug&apos; 2&gt;&amp;1
Prepare keychain...
1 key imported.
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 &apos;debug&apos; 2&gt;&amp;1
Prepare keychain...
1 key imported.
@wf9a5m75
wf9a5m75 / log
Last active August 29, 2015 14:08
//-------------------------------
// 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