I have discovered a bug when I was trying to use the dash-leaflet library. I have tried to build a simple example but this is smallest example I could come up with.
The idea of the dash board is to display a map with some markers of trains (green) and cars (red). The user can select an area on the map and the markers inside the area will be displayed.
The problem is that after some callback (not all) that returns a list of dl.Polyline objects, some of the lines can have wrong colors. I added a print statement to the get_stations, which prints the dl.Polyline objects before returning it. The print output is as expected, but the color of the lines on the map are different.
I have discovered a bug when I was trying to use the
dash-leaflet
library. I have tried to build a simple example but this is smallest example I could come up with.The idea of the dash board is to display a map with some markers of trains (green) and cars (red). The user can select an area on the map and the markers inside the area will be displayed.
The problem is that after some callback (not all) that returns a list of
dl.Polyline
objects, some of the lines can have wrong colors. I added a print statement to theget_stations
, which prints the dl.Polyline objects before returning it. The print output is as expected, but the color of the lines on the map are different.Here is a little video that shows the problem: https://youtu.be/8crKNfDrTq0