function evArrowIconURL(e, icon, fr, c)
{
    var arrow = (e.speedKPH > 0)? e.heading : 360.0;
    var color = "000000";
    if (c) {
        color = c;
    } else
    if (e.speedKPH < 5.0) {
        color = "DD0000"; // red (probably not moving)
    } else
    if (e.speedKPH < 32.0) {
        color = "FFD700"; // yellow (5 <= X < 32)
    } else {
        color = "00CC00"; // green (32 <= X)
    }
    return evArrowLabelIconURL(icon, fr, "", "", color, arrow);
}
/**
*** Pushpin:
*** Returns a label pushpin/icon URL which includes an arrow pointing in the specified direction
*** @param e    The 'MapEventRecord' object
*** @param icon The image URL
*** @param fr   The draw 'frame'
**/
Returns a label pushpin/icon URL which includes an arrow pointing in the specified direction
Returns a label pushpin / icon URL which includes an arrow pointing in the specified direction
function evArrowIconURL(e, icon, fr, c)
{
    var arrow = (e.speedKPH > 0)? e.heading : 360.0;
    var color = "000000";
    if (c) {
        color = c;
    } else
    if (e.speedKPH < 5.0) {
        color = "DD0000"; 
    } else
    if (e.speedKPH < 32.0) {
        color = "FFD700"; 
    } else {
        color = "00CC00"; 
    }
    return evArrowLabelIconURL(icon, fr, "", "", color, arrow);
}
function evArrowIconURL ( e , icon , fr , c ) { var arrow = ( e . speedKPH > 0 ) ? e . heading : 360.0 ; var color = "000000" ; if ( c ) { color = c ; } else if ( e . speedKPH < 5.0 ) { color = "DD0000" ; } else if ( e . speedKPH < 32.0 ) { color = "FFD700" ; } else { color = "00CC00" ; } return evArrowLabelIconURL ( icon , fr , "" , "" , color , arrow ) ; }
Pushpin:
Returns a label pushpin/icon URL which includes an arrow pointing in the specified direction
Pushpin : Returns a label pushpin / icon URL which includes an arrow pointing in the specified direction
// red (probably not moving) // yellow (5 <= X < 32) // green (32 <= X)