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; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)