function evHeadingMarkerURL(e) // US
{
    var ppImg = "https://gbpawebdiag949.blob.core.windows.net/gbpa-web/opengts/images/pp/pin30"; // "extra/images/pp/circle"
    if ((MAX_CREATION_AGE_SEC > 0) && (e.createAge > MAX_CREATION_AGE_SEC)) {
        if ((e.stopped > 0) || (e.speedKPH < 5.0)) {
            return ppImg + "_black.png";
        } else {
            var x = Math.round(e.heading / 45.0) % 8;
            return ppImg + "_black_h"+x+".png";
        }
    } else
    if (e.stopped > 0) {
        // stopped
        if (e.stopped == 2) {
            // stop-event
            return ppImg + "_red_dot.png";
        } else {
            // general stopped
            return ppImg + "_red.png";
        }
    } else
    if (e.speedKPH <  5.0/*km/h*/) { // 3.107 mph
        // probably not moving
        return ppImg + "_red_dot.png";
    } else
    if (e.speedKPH < 32.0/*km/h*/) { // 19.884 mph
        // 5 <= X < 32
        var x = Math.round(e.heading / 45.0) % 8;
        return ppImg + "_yellow_h"+x+".png";
    } else {
        // 32 <= X
        var x = Math.round(e.heading / 45.0) % 8;
        return ppImg + "_green_h"+x+".png";
    }
}
/**
*** Pushpin:
*** Returns a pushpin/icon URL based on the event heading
*** @param e  The 'MapEventRecord' object
**/
Returns a pushpin/icon URL based on the event heading
Returns a pushpin / icon URL based on the event heading
function evHeadingMarkerURL(e) 
{
    var ppImg = "https://gbpawebdiag949.blob.core.windows.net/gbpa-web/opengts/images/pp/pin30"; 
    if ((MAX_CREATION_AGE_SEC > 0) && (e.createAge > MAX_CREATION_AGE_SEC)) {
        if ((e.stopped > 0) || (e.speedKPH < 5.0)) {
            return ppImg + "_black.png";
        } else {
            var x = Math.round(e.heading / 45.0) % 8;
            return ppImg + "_black_h"+x+".png";
        }
    } else
    if (e.stopped > 0) {
        if (e.stopped == 2) {
            return ppImg + "_red_dot.png";
        } else {
            return ppImg + "_red.png";
        }
    } else
    if (e.speedKPH <  5.0) { 
        return ppImg + "_red_dot.png";
    } else
    if (e.speedKPH < 32.0) { 
        var x = Math.round(e.heading / 45.0) % 8;
        return ppImg + "_yellow_h"+x+".png";
    } else {
        var x = Math.round(e.heading / 45.0) % 8;
        return ppImg + "_green_h"+x+".png";
    }
}
function evHeadingMarkerURL ( e ) { var ppImg = "https://gbpawebdiag949.blob.core.windows.net/gbpa-web/opengts/images/pp/pin30" ; if ( ( MAX_CREATION_AGE_SEC > 0 ) && ( e . createAge > MAX_CREATION_AGE_SEC ) ) { if ( ( e . stopped > 0 ) || ( e . speedKPH < 5.0 ) ) { return ppImg + "_black.png" ; } else { var x = Math . round ( e . heading / 45.0 ) % 8 ; return ppImg + "_black_h" + x + ".png" ; } } else if ( e . stopped > 0 ) { if ( e . stopped == 2 ) { return ppImg + "_red_dot.png" ; } else { return ppImg + "_red.png" ; } } else if ( e . speedKPH < 5.0 ) { return ppImg + "_red_dot.png" ; } else if ( e . speedKPH < 32.0 ) { var x = Math . round ( e . heading / 45.0 ) % 8 ; return ppImg + "_yellow_h" + x + ".png" ; } else { var x = Math . round ( e . heading / 45.0 ) % 8 ; return ppImg + "_green_h" + x + ".png" ; } }
Pushpin:
Returns a pushpin/icon URL based on the event heading
Pushpin : Returns a pushpin / icon URL based on the event heading
// US // "extra/images/pp/circle" // stopped // stop-event // general stopped /*km/h*/ // 3.107 mph // probably not moving /*km/h*/ // 19.884 mph // 5 <= X < 32 // 32 <= X