function evCreateAgeMarkerURL(e)
{
    var ppImg = "https://gbpawebdiag949.blob.core.windows.net/gbpa-web/opengts/images/pp/pin30";
    var deltaSec = e.createAge;
    if (deltaSec <= (    15 * 60)) {    // <= 15 minutes
        // 0 < X <= 15min
        return ppImg + "_green.png";
    } else
    if (deltaSec <= (1 * 60 * 60)) {    // <= 1 hour
        // 15min < X <= 1hr
        return ppImg + "_yellow.png";
    } else
    if (deltaSec <= (6 * 60 * 60)) {    // <= 6 hour
        // 1hr < X <= 6hr
        return ppImg + "_red.png";
    } else {
        // 6hr < X
        return ppImg + "_red_dot.png";
    }
}
/**
*** Pushpin:
*** Returns a pushpin/icon URL based on the event creation age (time difference between
*** when the event was generated in the device and when it finally sent it to the
*** server).
*** @param e  The 'MapEventRecord' object
**/
Returns a pushpin/icon URL based on the event creation age (time difference between
when the event was generated in the device and when it finally sent it to the
server).
Returns a pushpin / icon URL based on the event creation age ( time difference between when the event was generated in the device and when it finally sent it to the server ) .
function evCreateAgeMarkerURL(e)
{
    var ppImg = "https://gbpawebdiag949.blob.core.windows.net/gbpa-web/opengts/images/pp/pin30";
    var deltaSec = e.createAge;
    if (deltaSec <= (    15 * 60)) {    
        return ppImg + "_green.png";
    } else
    if (deltaSec <= (1 * 60 * 60)) {    
        return ppImg + "_yellow.png";
    } else
    if (deltaSec <= (6 * 60 * 60)) {    
        return ppImg + "_red.png";
    } else {
        return ppImg + "_red_dot.png";
    }
}
function evCreateAgeMarkerURL ( e ) { var ppImg = "https://gbpawebdiag949.blob.core.windows.net/gbpa-web/opengts/images/pp/pin30" ; var deltaSec = e . createAge ; if ( deltaSec <= ( 15 * 60 ) ) { return ppImg + "_green.png" ; } else if ( deltaSec <= ( 1 * 60 * 60 ) ) { return ppImg + "_yellow.png" ; } else if ( deltaSec <= ( 6 * 60 * 60 ) ) { return ppImg + "_red.png" ; } else { return ppImg + "_red_dot.png" ; } }
Pushpin:
Returns a pushpin/icon URL based on the event creation age (time difference between
when the event was generated in the device and when it finally sent it to the
server).
Pushpin : Returns a pushpin / icon URL based on the event creation age ( time difference between when the event was generated in the device and when it finally sent it to the server ) .
// <= 15 minutes // 0 < X <= 15min // <= 1 hour // 15min < X <= 1hr // <= 6 hour // 1hr < X <= 6hr // 6hr < X