mirror of
https://github.com/Rhinemann/IoT-Systems.git
synced 2026-03-14 20:50:39 +02:00
hotfix: index overflow on user_id
This commit is contained in:
parent
63aca15824
commit
8af68d6dd9
@ -49,7 +49,7 @@ class MapViewApp(App):
|
|||||||
|
|
||||||
# Оновлює лінію маршрута
|
# Оновлює лінію маршрута
|
||||||
if user_id not in self.line_layers:
|
if user_id not in self.line_layers:
|
||||||
self.line_layers[user_id] = LineMapLayer(color = line_layer_colors[user_id])
|
self.line_layers[user_id] = LineMapLayer(color = line_layer_colors[user_id % len(line_layer_colors)])
|
||||||
self.mapview.add_layer(self.line_layers[user_id])
|
self.mapview.add_layer(self.line_layers[user_id])
|
||||||
|
|
||||||
self.line_layers[user_id].add_point((lat, lon))
|
self.line_layers[user_id].add_point((lat, lon))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user