me so randomg
parent
97d3452b22
commit
37b4eb45f6
|
@ -36,7 +36,10 @@ const status_colors = {
|
|||
};
|
||||
|
||||
for (const loc of mapdata) {
|
||||
const marker = L.circleMarker([loc.shipping_latitude, loc.shipping_longitude], {
|
||||
const r1 = (Math.random() - 0.5) * 0.001;
|
||||
const r2 = (Math.random() - 0.5) * 0.001;
|
||||
|
||||
const marker = L.circleMarker([loc.shipping_latitude + r1, loc.shipping_longitude + r2], {
|
||||
color: status_colors[loc.status] || '#555555',
|
||||
stroke: loc.id == focusitem,
|
||||
fillOpacity: 0.4,
|
||||
|
|
Loading…
Reference in New Issue