web/js/googlemap.js
// write kml for polyline in text area
write kml for polyline in text area
write kml for polyline in text area
function logCode1(){
    if (notext === true) return;
    var code = ""; 
    var kmltext1 = '<Placemark><name>'+placemarks[plmcur].name+'</name>\n' +
                    '<description>'+placemarks[plmcur].desc+'</description>\n' +
                    '<styleUrl>#'+placemarks[plmcur].style+'</styleUrl>\n' +
                    '<LineString>\n<tessellate>'+placemarks[plmcur].tess+'</tessellate>\n' +
                    '<altitudeMode>'+placemarks[plmcur].alt+'</altitudeMode>\n<coordinates>\n';
    for(var i = 0; i < pointsArrayKml.length; i++) {
        code += pointsArrayKml[i] + ',0.0 \n';
    }
    kmltext2 = '</coordinates>\n</LineString>\n</Placemark>\n';
    placemarks[plmcur].plmtext = kmlcode = kmltext1+code+kmltext2;
    placemarks[plmcur].poly = "pl";
    placemarks[plmcur].jscode = pointsArray;
    placemarks[plmcur].kmlcode = pointsArrayKml;
    gob('coords1').value = kmlheading()+kmltext1+code+kmltext2+kmlend();
}
function logCode1 ( ) { if ( notext === true ) return ; var code = "" ; var kmltext1 = '<Placemark><name>' + placemarks [ plmcur ] . name + '</name>\n' + '<description>' + placemarks [ plmcur ] . desc + '</description>\n' + '<styleUrl>#' + placemarks [ plmcur ] . style + '</styleUrl>\n' + '<LineString>\n<tessellate>' + placemarks [ plmcur ] . tess + '</tessellate>\n' + '<altitudeMode>' + placemarks [ plmcur ] . alt + '</altitudeMode>\n<coordinates>\n' ; for ( var i = 0 ; i < pointsArrayKml . length ; i ++ ) { code += pointsArrayKml [ i ] + ',0.0 \n' ; } kmltext2 = '</coordinates>\n</LineString>\n</Placemark>\n' ; placemarks [ plmcur ] . plmtext = kmlcode = kmltext1 + code + kmltext2 ; placemarks [ plmcur ] . poly = "pl" ; placemarks [ plmcur ] . jscode = pointsArray ; placemarks [ plmcur ] . kmlcode = pointsArrayKml ; gob ( 'coords1' ) . value = kmlheading ( ) + kmltext1 + code + kmltext2 + kmlend ( ) ; }
write kml for polyline in text area
write kml for polyline in text area
// placemarks[plmcur].style = polylinestyles[lcur].name