TheTransitClock / transitime

TheTransitClock real-time transit information system
GNU General Public License v3.0
78 stars 29 forks source link

AVL Reports don't display tiles because of Mapbox terms&conditions #243

Open wkulesza opened 3 years ago

wkulesza commented 3 years ago

Expected functionality Each generated AVL reports should show vehicle positions over time on map.

Describe the bug As map tiles are served by Mapbox, which is a paid service, map is not visible in the reports, with error in console:


    "message": "Classic styles are no longer supported; see https://blog.mapbox.com/deprecating-studio-classic-styles-d8892ac38cb4 for more information"
}```

**To Reproduce**
Open Reports, then AVL Data in Map by Vehicle and then generate a report.

**Screenshots**
http://prntscr.com/16knjlj

**Version:**
Newest development branch of transitime, being used by TC docker

**Configuration:**
Standard
wkulesza commented 3 years ago

Just to confirm, this code change does work and could be the solution: https://github.com/camsys/transitime/commit/2b40bdbf067d1e0bf1940abfdfa6ac2f064ef15f

Would be better to allow this to be configurable though - to allow user to select which tile provider he prefers (if. mapbox, than token needs to be provided, if openstreetmap, then use the above code change.