mirror of
https://github.com/cjdenio/uta-trax-api.git
synced 2026-10-03 08:06:19 +00:00
small improvement
This commit is contained in:
2 files changed
+4
-4
No files matched your search
+1
-1
@@ -300,6 +300,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="module" src="/js/main.js?v=13"></script>
|
||||
<script type="module" src="/js/main.js?v=14"></script>
|
||||
</body>
|
||||
</html>
|
||||
+3
-3
@@ -274,10 +274,10 @@ function renderVehicle(vehicle) {
|
||||
: 3000,
|
||||
icon: renderVehicleIcon(vehicle),
|
||||
}).bindPopup(vehiclePopupContent(vehicle)).on("popupopen", () => {
|
||||
for (const layer of railLayer.getLayers()) {
|
||||
layer.setStyle({ opacity: 0.2 });
|
||||
}
|
||||
getTripShape(vehicle.shape_id).then(shape => {
|
||||
for (const layer of railLayer.getLayers()) {
|
||||
layer.setStyle({ opacity: 0.2 });
|
||||
}
|
||||
L.polyline(shape, { color: `#${vehicle.route.color}`, zIndexOffset: 10 }).addTo(currentRouteLayer);
|
||||
})
|
||||
}).on("popupclose", () => {
|
||||
|
||||
Reference in new issue
Block a user