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