Firebugが正しい座標がtargetDestinationに入力されていることを示しているときに、結果の緯度経度が毎回37.986272、-122.010576である理由を理解しようとしています-
Firebug から: gmaptest.html#page2 行 75> の時点で
targetDestination = new google.maps.LatLng(parseInt(coords[0]),parseInt(coords[1]));
座標- ["38.42036", "-122.662246"]
リクエスト - 未定義
targetDestination-「38.42036、-122.662246」
これが私のテストページです - http://legendsnorcal.dfigdesign.com/maps/gmaptest.html
2 番目のページを初期化すると、現在の場所が正しくプルされます。
$(document).on('pageinit', '#page2', function(){
var selectedDest = $('[name=latlong]').val();
navigator.geolocation.getCurrentPosition(locSuccess, locError);
});