私は学校バストラッキングのような1つのモジュールを開発する必要があるphp.forで1つの学校管理アプリケーションを開発しています。しかし、私はこのトピックを初めて習得しました。 私は非常に多くの検索を行っています。しかし、運はありません。スクールバストラッキングGPSウェブアプリ
<script>
var watchID = null;
$(document).ready(function() {
var optn = {
enableHighAccuracy: true,
timeout: Infinity,
maximumAge: 0
};
if (navigator.geolocation)
navigator.geolocation.watchPosition(success, fail, optn);
else
$("p").html("HTML5 Not Supported");
$("button").click(function() {
if (watchID)
navigator.geolocation.clearWatch(watchID);
watchID = null;
return false;
});
});
function success(position) {
var googleLatLng = new google.maps.LatLng(position.coords.latitude,
position.coords.longitude);
var mapOtn = {
zoom: 10,
center: googleLatLng,
mapTypeId: google.maps.MapTypeId.ROAD
};
var Pmap = document.getElementById("map");
var map = new google.maps.Map(Pmap, mapOtn);
addMarker(map, googleLatLng);
}
function addMarker(map, googleLatLng, title, content) {
var markerOptn = {
position: googleLatLng,
map: map,
title: title,
animation: google.maps.Animation.DROP
};
var marker = new google.maps.Marker(markerOptn);
var infoWindow = new google.maps.InfoWindow({
content: content,
position: googleLatLng
});
google.maps.event.addListener(marker, "click", function() {
infoWindow.open(map);
});
}
</script>
私は、このコードは私が追跡デバイスが使用することが好ましいbus.andの位置を取得することができますlocation.howバスを追跡する私のlocation.butのマップを示している?このcode.butを見つけましたか
おかげで、事前に
私を更新しますか? – Andreas
私はこれにPHPスクリプトを使用していません。 – roja
Excatly。だから、PHPはなぜテジャーされたのですか? – Andreas