web/js/googlemap.js
// If coming from directionstyles, toolID=6 has been changed to 1 or 5
If coming from directionstyles, toolID=6 has been changed to 1 or 5
If coming from directionstyles toolID = 6 has been changed to 1 or 5
function styleoptions(){ 
    closethis('polylineoptions');
    closethis('polygonoptions');
    closethis('circleoptions');
    closethis('markeroptions');
    closethis('directionstyles');
    if(toolID == 1 || toolID == 7){
        showthis('polylineoptions'); 
        gob('polylineinput1').value = polylinestyles[lcur].color;
        gob('polylineinput2').value = polylinestyles[lcur].lineopac;
        gob('polylineinput3').value = polylinestyles[lcur].width;
        gob('polylineinput4').value = polylinestyles[lcur].name;
        gob("stylenumberl").innerHTML = (lcur+1)+' ';
    }
    if(toolID == 2 || toolID == 3 || toolID == 8){
        showthis('polygonoptions');
        gob('polygoninput1').value = polygonstyles[pcur].color;
        gob('polygoninput2').value = polygonstyles[pcur].lineopac;
        gob('polygoninput3').value = polygonstyles[pcur].width;
        gob('polygoninput4').value = polygonstyles[pcur].fill;
        gob('polygoninput5').value = polygonstyles[pcur].fillopac;
        gob('polygoninput6').value = polygonstyles[pcur].name;
        gob("stylenumberp").innerHTML = (pcur+1)+' ';
    }
    if(toolID == 4) {
        showthis('circleoptions');
        gob('circinput1').value = circlestyles[ccur].color;
        gob('circinput2').value = circlestyles[ccur].lineopac;
        gob('circinput3').value = circlestyles[ccur].width;
        gob('circinput4').value = circlestyles[ccur].fill;
        gob('circinput5').value = circlestyles[ccur].fillopac;
        gob('circinput6').value = circlestyles[ccur].name;
        gob("stylenumberc").innerHTML = (ccur+1)+' ';
    }
    if(toolID == 5){
        showthis('markeroptions');
        gob('st1').value = markerstyles[mcur].name;
        iconoptions(markerstyles[mcur].icon);
        gob("stylenumberm").innerHTML = (mcur+1)+' ';
    }
    if(toolID == 6){
        showthis('directionstyles');
    }
}
function styleoptions ( ) { closethis ( 'polylineoptions' ) ; closethis ( 'polygonoptions' ) ; closethis ( 'circleoptions' ) ; closethis ( 'markeroptions' ) ; closethis ( 'directionstyles' ) ; if ( toolID == 1 || toolID == 7 ) { showthis ( 'polylineoptions' ) ; gob ( 'polylineinput1' ) . value = polylinestyles [ lcur ] . color ; gob ( 'polylineinput2' ) . value = polylinestyles [ lcur ] . lineopac ; gob ( 'polylineinput3' ) . value = polylinestyles [ lcur ] . width ; gob ( 'polylineinput4' ) . value = polylinestyles [ lcur ] . name ; gob ( "stylenumberl" ) . innerHTML = ( lcur + 1 ) + ' ' ; } if ( toolID == 2 || toolID == 3 || toolID == 8 ) { showthis ( 'polygonoptions' ) ; gob ( 'polygoninput1' ) . value = polygonstyles [ pcur ] . color ; gob ( 'polygoninput2' ) . value = polygonstyles [ pcur ] . lineopac ; gob ( 'polygoninput3' ) . value = polygonstyles [ pcur ] . width ; gob ( 'polygoninput4' ) . value = polygonstyles [ pcur ] . fill ; gob ( 'polygoninput5' ) . value = polygonstyles [ pcur ] . fillopac ; gob ( 'polygoninput6' ) . value = polygonstyles [ pcur ] . name ; gob ( "stylenumberp" ) . innerHTML = ( pcur + 1 ) + ' ' ; } if ( toolID == 4 ) { showthis ( 'circleoptions' ) ; gob ( 'circinput1' ) . value = circlestyles [ ccur ] . color ; gob ( 'circinput2' ) . value = circlestyles [ ccur ] . lineopac ; gob ( 'circinput3' ) . value = circlestyles [ ccur ] . width ; gob ( 'circinput4' ) . value = circlestyles [ ccur ] . fill ; gob ( 'circinput5' ) . value = circlestyles [ ccur ] . fillopac ; gob ( 'circinput6' ) . value = circlestyles [ ccur ] . name ; gob ( "stylenumberc" ) . innerHTML = ( ccur + 1 ) + ' ' ; } if ( toolID == 5 ) { showthis ( 'markeroptions' ) ; gob ( 'st1' ) . value = markerstyles [ mcur ] . name ; iconoptions ( markerstyles [ mcur ] . icon ) ; gob ( "stylenumberm" ) . innerHTML = ( mcur + 1 ) + ' ' ; } if ( toolID == 6 ) { showthis ( 'directionstyles' ) ; } }
If coming from directionstyles, toolID=6 has been changed to 1 or 5
If coming from directionstyles toolID = 6 has been changed to 1 or 5
//present current style in ..options //closethis('rectang'); // Edit style or create new style if sent to polylinestyle() //if(plmcur<placemarks.length-1) lcur = placemarks[plmcur].stylecur; //if(plmcur<placemarks.length-1) pcur = placemarks[plmcur].stylecur;