|
|
@ -110,8 +110,9 @@ function mapboxMap() {
|
|
|
|
if (map.openedPanelIconID != null && map.openedPanelIconID == datai.id) {
|
|
|
|
if (map.openedPanelIconID != null && map.openedPanelIconID == datai.id) {
|
|
|
|
el.className += " selected";
|
|
|
|
el.className += " selected";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// Show different color highlight when nearby
|
|
|
|
// Show different color highlight when nearby and undelivered
|
|
|
|
if (packages[i].distance * 1 < getStorage("alertradius") * 1) {
|
|
|
|
if (packages[i].distance * 1 < getStorage("alertradius") * 1
|
|
|
|
|
|
|
|
&& getUndeliveredCount(packages[i]) > 0) {
|
|
|
|
el.className += " alerted";
|
|
|
|
el.className += " alerted";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|