mirror of
https://github.com/cjdenio/uta-trax-api.git
synced 2026-10-03 16: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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="module" src="/js/main.js?v=13"></script>
|
<script type="module" src="/js/main.js?v=14"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
+3
-3
@@ -274,10 +274,10 @@ function renderVehicle(vehicle) {
|
|||||||
: 3000,
|
: 3000,
|
||||||
icon: renderVehicleIcon(vehicle),
|
icon: renderVehicleIcon(vehicle),
|
||||||
}).bindPopup(vehiclePopupContent(vehicle)).on("popupopen", () => {
|
}).bindPopup(vehiclePopupContent(vehicle)).on("popupopen", () => {
|
||||||
|
for (const layer of railLayer.getLayers()) {
|
||||||
|
layer.setStyle({ opacity: 0.2 });
|
||||||
|
}
|
||||||
getTripShape(vehicle.shape_id).then(shape => {
|
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);
|
L.polyline(shape, { color: `#${vehicle.route.color}`, zIndexOffset: 10 }).addTo(currentRouteLayer);
|
||||||
})
|
})
|
||||||
}).on("popupclose", () => {
|
}).on("popupclose", () => {
|
||||||
|
|||||||
Reference in new issue
Block a user