Skip to content

Commit 3251588

Browse files
simplify zIndex calculation
1 parent ca67424 commit 3251588

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/tracker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ function updateVehicleInfo(index, newPosition) {
280280

281281
// update market z-index based on latitude, 90 being background and -90 foreground
282282
// the first 2 decimal digits are included for added accuracy
283-
var zIndex = 18000 - (9000 + parseInt(newPosition.gps_lat*100));
283+
var zIndex = 9000 - parseInt(newPosition.gps_lat*100);
284284

285285
// update position
286286
if(vehicle.marker_shadow) {

0 commit comments

Comments
 (0)