Click here to Skip to main content
15,886,052 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
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





C#
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;
  }
Posted

1 solution

 
Share this answer
 
Comments
mohanrajkiller 31-Dec-11 14:48pm    
noo that doesnt help me

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900