'.$nam.'
batteryLevel: '.$bat.'
Status: '.$act.'
Last updated: '.$lst=str_replace(array('T', 'Z'), ' ', $lst).'") .bindTooltip("'.$nam.'").setIcon(availableIcon);'; }; //check if scooter is rented out if ($rnt == false && $act === 'ACTIVE') { $marker = 'var scooter'.$nam.' = L.marker(['.$pos.'], {time: "'.$lst.'"}).addTo(map) .bindPopup("'.$nam.'
batteryLevel:'.$bat.'
Status: '.$act.'
Last updated: '.$lst=str_replace(array('T', 'Z'), ' ', $lst).'") .bindTooltip("'.$nam.'").setIcon(isRentedIcon);'; }; //check if scooter battery is low if($act === "INACTIVE" && $bat > 0){ $marker = 'var scooter'.$nam.' = L.marker(['.$pos.'], {time: "'.$lst.'"}).addTo(map) .bindPopup("'.$nam.'
batteryLevel:'.$bat.'
Status: '.$act.'
Last updated: '.$lst=str_replace(array('T', 'Z'), ' ', $lst).'") .bindTooltip("'.$nam.'").setIcon(lowBatIcon);'; }; //check if scooters battery is dead if($act === "INACTIVE" && $bat == 0){ $marker = 'var scooter'.$nam.' = L.marker(['.$pos.'], {time: "'.$lst.'"}).addTo(map) .bindPopup("'.$nam.'
batteryLevel:'.$bat.'
Status: '.$act.'
Last updated: '.$lst=str_replace(array('T', 'Z'), ' ', $lst).'") .bindTooltip("'.$nam.'").setIcon(noBatIcon);'; }; //check if scooters is dead if($act === "DAMAGED" || $act === "MAINTENANCE" || $act === "OUT_OF_ORDER" || $act === "GPS_ISSUE"){ $marker = 'var scooter'.$nam.' = L.marker(['.$pos.'], {time: "'.$lst.'"}).addTo(map) .bindPopup("'.$nam.'
batteryLevel:'.$bat.'
Status: '.$act.'
Last updated: '.$lst=str_replace(array('T', 'Z'), ' ', $lst).'") .bindTooltip("'.$nam.'").setIcon(isMaintenanceIcon);'; }; //check if scooters is lost if($act === "LOST"){ $marker = 'var scooter'.$nam.' = L.marker(['.$pos.'], {time: "'.$lst.'"}).addTo(map) .bindPopup("'.$nam.'
batteryLevel:'.$bat.'
Status: '.$act.'
Last updated: '.$lst=str_replace(array('T', 'Z'), ' ', $lst).'") .bindTooltip("'.$nam.'").setIcon(isLostIcon);'; }; return $marker; }; ?> TIER Hamburg