Google节约地球坐标 [英] Google earth saving co-ordinates
本文介绍了Google节约地球坐标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是.net开发人员,我需要使用php的一些帮助,以使用不带回发功能的php将google Earth坐标的纬度和经度保存在使用php的服务器上的xml文件中.
每当我单击google Earth时,我都会为google Earth开发一个事件,该事件会触发此功能,但是如何将其保存为xml,以便这些坐标将被其他网页使用
i am a .net developer , i need some help in php to save the latitude and longitude of google earth co-ordinates in a xml file on a server using php without postback .
i developed an event for google earth whenever i click google earth it triggers this function but how to save it as an xml so that these co-ordinates will be used by other web page
function makePlacemark(lat, lng, alt, altMode, iconStr) // javascript function which holds the value to be saved as xml
{
var icon = ge.createIcon('');
var style = ge.createStyle('');
style.getIconStyle().setIcon(icon);
style.getIconStyle().getHotSpot().set(0.5, ge.UNITS_FRACTION, 0, ge.UNITS_FRACTION);
icon.setHref('https://xyz.jpg');
// alert(lat);
var pt = ge.createPoint('');
pt.set(lat, lng, alt, altMode, false, false);
//dummy copying below
LAT=lat; // THE VALUES TO BE SAVED IN XML
LON=lng; // THE VALUES TO BE SAVED IN XML
// document.getElementById('hiddentest').value
document.getElementById('latit').value=LAT;
document.getElementById('longit').value=LON;
// pt.set(55, 55, alt, altMode, false, false);
var pm = ge.createPlacemark('');
pm.setName("MOHAN");
pm.setGeometry(pt);
pm.setStyleSelector(style);
// alert('end');
//second model
return pm;
}
推荐答案
Try
http://code.google.com/apis/maps/articles/phpsqlsearch.html [ ^ ]
Try
http://code.google.com/apis/maps/articles/phpsqlsearch.html[^]
这篇关于Google节约地球坐标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文