mirror of
https://github.com/cjdenio/uta-trax-api.git
synced 2026-08-04 22:06:34 +00:00
better circle
This commit is contained in:
+2
-2
@@ -50,11 +50,11 @@
|
||||
.decode(new Uint8Array(bin));
|
||||
|
||||
vehicles.forEach((vehicle) => {
|
||||
L.circle([vehicle.lat, vehicle.lon], {
|
||||
L.circleMarker([vehicle.lat, vehicle.lon], {
|
||||
fillColor: COLORS[vehicle.line],
|
||||
color: COLORS[vehicle.line],
|
||||
fillOpacity: 0.5,
|
||||
radius: 200,
|
||||
radius: 8,
|
||||
})
|
||||
.addTo(map)
|
||||
.bindPopup(vehicle.nearestStation.name);
|
||||
|
||||
Reference in New Issue
Block a user