me so randomg

master
informatic 2020-04-08 18:49:52 +02:00
parent 97d3452b22
commit 37b4eb45f6
1 changed files with 4 additions and 1 deletions

View File

@ -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,