Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
init map
Browse files Browse the repository at this point in the history
  • Loading branch information
maatumo committed Mar 10, 2018
1 parent 7eb77f9 commit 8aa0216
Show file tree
Hide file tree
Showing 21 changed files with 29 additions and 1,855 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file removed copter.png
Binary file not shown.
Binary file removed drone.png
Binary file not shown.
Binary file removed drone_mini.png
Binary file not shown.
Binary file removed drone_mini_b.png
Binary file not shown.
Binary file removed goal.png
Binary file not shown.
Binary file removed goal_mini.png
Binary file not shown.
Binary file removed heli.png
Binary file not shown.
Binary file removed heli_mini.png
Binary file not shown.
Binary file removed heli_mini_b.png
Binary file not shown.
493 changes: 0 additions & 493 deletions index-rtl.html

This file was deleted.

26 changes: 5 additions & 21 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">天草実験</a>
<a class="navbar-brand" href="index.html">gmaptl</a>
</div>
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav side-nav">
Expand All @@ -68,15 +68,16 @@
<a href="index.html"><i class="fa fa-fw fa-plane"></i>マップ</a>
</li>
<li>
<a href="mydrone.html"><i class="fa fa-fw fa-cog"></i>パイロット向けマップ</a>
<a href="jsonup.html"><i class="fa fa-fw fa-cog"></i>json入力</a>
</li>
<!-- <li>
<a href="alerts.html"><i class="fa fa-fw fa-exclamation-triangle"></i> Alerts</a>
</li>
--> <li>
-->
<!-- <li>
<a href="help.html"><i class="fa fa-fw fa-comment-o"></i> Help</a>
</li>

-->
--> </ul>
</div>
<!-- /.navbar-collapse -->
Expand All @@ -90,7 +91,6 @@
<div id="testtext">
</div>
<div id="map" style="width:100%; height:600px"></div>
<!-- AIzaSyCdPswDXV9ogiCp3fituxz1TSQ46OtNjuw -->
<br />
<!-- /.container-fluid -->
</div>
Expand All @@ -101,22 +101,6 @@


<!-- Firebase -->
<!-- <script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyA59IfNPZMBtFkd6LKeU_H82UtaRNudPEQ",
authDomain: "dronemap-651ef.firebaseapp.com",
databaseURL: "https://dronemap-651ef.firebaseio.com",
storageBucket: "dronemap-651ef.appspot.com",
messagingSenderId: "324021227994"
};
firebase.initializeApp(config);
</script>
<script src="https://www.gstatic.com/firebasejs/3.5.3/firebase.js">
</script>
-->

<!-- jQuery -->
<script src="js/jquery.js"></script>
Expand Down
155 changes: 0 additions & 155 deletions index保存ばん.html

This file was deleted.

56 changes: 0 additions & 56 deletions js/help.js
Original file line number Diff line number Diff line change
@@ -1,56 +0,0 @@

if(localStorage){
console.log('localStrage is available!');
}

var logText;
var now;
//Firebase Legacy

var dataStore;
dataStore = new Firebase('https://amakusa.firebaseio.com/');
var airplanes=dataStore.child('airplanes');


//firebaseの情報が変更されたら発火
airplanes.on('value',function(dataSnapShot){
var data = dataSnapShot.val();
console.log('data from firebase!');
console.log(data);
markerData = [];
for(var bodyname in data){//firebaseからのデータをMarkerDataに格納
console.log(bodyname+" data "+data[bodyname]);
markerData.push({
name: bodyname,
lat: data[bodyname]["lat"],
lng: data[bodyname]["lng"],
bodyType: data[bodyname]["bodyType"],
updateTime: data[bodyname]["updateTime"],
flightState: data[bodyname]["flightState"],
velocity: data[bodyname]["velocity"],
heading: data[bodyname]["heading"],
});
}
var date=new Date();
now=date.getFullYear() + "-" + (date.getMonth() + 1) + "-" + date.getDate() + " " + date.getHours() + ":" + date.getMinutes() + ":" + date.getSeconds();
logText=localStorage.getItem('Log')+"\r\n\r\n"+now+"\r\n"+JSON.stringify(markerData);
localStorage.setItem('Log', logText);

document.getElementById('answer').innerHTML ="<textarea cols='100' rows='10'>"+logText+"</textarea>";

});


function handleDownload() {
var blob = new Blob([ logText ], { "type" : "text/plain" });
var fileName=now;

if (window.navigator.msSaveBlob) {
window.navigator.msSaveBlob(blob, fileName);

// msSaveOrOpenBlobの場合はファイルを保存せずに開ける
window.navigator.msSaveOrOpenBlob(blob, fileName);
} else {
document.getElementById("download").href = window.URL.createObjectURL(blob);
}
}
Loading

0 comments on commit 8aa0216

Please sign in to comment.