function evHeadingMarkerURL_CC(e) // Custom
{
    var ppImg = "https://gbpawebdiag949.blob.core.windows.net/gbpa-web/opengts/images/pp/pin30"; // "extra/images/pp/circle"
    var HEADING_MARKER_SPEED_RED     =  10.0; // <  10 km/h
    var HEADING_MARKER_SPEED_YELLOW  =  60.0; // <  60 km/h
    var HEADING_MARKER_SPEED_GREEN   =  90.0; // <  90 km/h
    var HEADING_MARKER_SPEED_BLUE    = 110.0; // < 110 km/h
    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 < HEADING_MARKER_SPEED_RED) {
        return ppImg + "_red.png";
    } else
    if (e.speedKPH < HEADING_MARKER_SPEED_YELLOW) {
        var x = Math.round(e.heading / 45.0) % 8;
        return ppImg + "_yellow_h"+x+".png";
    } else
    if (e.speedKPH < HEADING_MARKER_SPEED_GREEN) {
        var x = Math.round(e.heading / 45.0) % 8;
        return ppImg + "_green_h"+x+".png";
    } else
    if (e.speedKPH < HEADING_MARKER_SPEED_BLUE) {
        var x = Math.round(e.heading / 45.0) % 8;
        return ppImg + "_blue_h"+x+".png";
    } else {
        var x = Math.round(e.heading / 45.0) % 8;
        return ppImg + "_black_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_CC(e) 
{
    var ppImg = "https://gbpawebdiag949.blob.core.windows.net/gbpa-web/opengts/images/pp/pin30"; 
    var HEADING_MARKER_SPEED_RED     =  10.0; 
    var HEADING_MARKER_SPEED_YELLOW  =  60.0; 
    var HEADING_MARKER_SPEED_GREEN   =  90.0; 
    var HEADING_MARKER_SPEED_BLUE    = 110.0; 
    if (e.stopped > 0) { 
        if (e.stopped == 2) { 
            return ppImg + "_red_dot.png";
        } else { 
            return ppImg + "_red.png";
        }
    } else
    if (e.speedKPH < HEADING_MARKER_SPEED_RED) {
        return ppImg + "_red.png";
    } else
    if (e.speedKPH < HEADING_MARKER_SPEED_YELLOW) {
        var x = Math.round(e.heading / 45.0) % 8;
        return ppImg + "_yellow_h"+x+".png";
    } else
    if (e.speedKPH < HEADING_MARKER_SPEED_GREEN) {
        var x = Math.round(e.heading / 45.0) % 8;
        return ppImg + "_green_h"+x+".png";
    } else
    if (e.speedKPH < HEADING_MARKER_SPEED_BLUE) {
        var x = Math.round(e.heading / 45.0) % 8;
        return ppImg + "_blue_h"+x+".png";
    } else {
        var x = Math.round(e.heading / 45.0) % 8;
        return ppImg + "_black_h"+x+".png";
    }
}
function evHeadingMarkerURL_CC ( e ) { var ppImg = "https://gbpawebdiag949.blob.core.windows.net/gbpa-web/opengts/images/pp/pin30" ; var HEADING_MARKER_SPEED_RED = 10.0 ; var HEADING_MARKER_SPEED_YELLOW = 60.0 ; var HEADING_MARKER_SPEED_GREEN = 90.0 ; var HEADING_MARKER_SPEED_BLUE = 110.0 ; if ( e . stopped > 0 ) { if ( e . stopped == 2 ) { return ppImg + "_red_dot.png" ; } else { return ppImg + "_red.png" ; } } else if ( e . speedKPH < HEADING_MARKER_SPEED_RED ) { return ppImg + "_red.png" ; } else if ( e . speedKPH < HEADING_MARKER_SPEED_YELLOW ) { var x = Math . round ( e . heading / 45.0 ) % 8 ; return ppImg + "_yellow_h" + x + ".png" ; } else if ( e . speedKPH < HEADING_MARKER_SPEED_GREEN ) { var x = Math . round ( e . heading / 45.0 ) % 8 ; return ppImg + "_green_h" + x + ".png" ; } else if ( e . speedKPH < HEADING_MARKER_SPEED_BLUE ) { var x = Math . round ( e . heading / 45.0 ) % 8 ; return ppImg + "_blue_h" + x + ".png" ; } else { var x = Math . round ( e . heading / 45.0 ) % 8 ; return ppImg + "_black_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
// Custom // "extra/images/pp/circle" // <  10 km/h // <  60 km/h // <  90 km/h // < 110 km/h // stopped // stop-event // general stopped