ibi-group / datatools-ui

Core application for IBI's transit data tools suite.
https://data-tools-docs.ibi-transit.com/en/latest/
MIT License
120 stars 80 forks source link

Docker deployment map is gray #983

Open brodyFlannigan opened 1 year ago

brodyFlannigan commented 1 year ago

Observed behavior (please include a screenshot if possible)

When using the docker quickstart (which is amazing, by the way) The map is simply gray, without any map background. Stop locations are visible but there's nothing behind them. This is an issue even with a mapbox key set in the configuration. Looking at the network tab, I'm seeing requests being made to http://localhost:9966/feed/40a70eaf-9bc1-402b-9867-604a479d12b5/optional-map-tile-url when I move the map around, which doesn't seem to be normal.

image

Expected behavior

Map should have background

Steps to reproduce the problem

  1. Download from commit 6fc72d2148e8dda005aae9c2b26ba911e4197506
  2. In the appropriate location (/configurations/default/env.yml), insert your mapbox API key.
  3. Run docker-compose up as suggested in README.

Any special notes on configuration used

Nothing special other than changing my mapbox key in /configurations/default/env.yml

Version of datatools-ui and datatools-server if applicable (exact commit hash or branch name)

Commit 6fc72d2148e8dda005aae9c2b26ba911e4197506

philip-cline commented 1 year ago

Hi @brodyFlannigan, thanks for reporting this! We'll take a look and get back to you shortly

miles-grant-ibigroup commented 1 year ago

Thanks for reporting! We'll be able to patch this soon. As a stopgap fix, you can open configurations/env.yml.tmp (and configurations/env.yml if you have one) and remove line 5 (the one with "optional-map-tile-url"). If it's removed datatools should fall back to a default that works!

We'll put out a patch that removes this unhelpful configuration line.

brodyFlannigan commented 1 year ago

The removal of line 5 (Optional map tile URL) did the trick! Thanks!

I'll leave the issue open as I understand you're working on a more long-term solution :)

ArthurSrz commented 11 months ago

I did remove line 5 but it did not work. My map stays grey. Did you setup a more permanent fix ? Thanks !

miles-grant-ibigroup commented 11 months ago

Does your network inspector show any failed requests? If so, could you please share a screenshot?

ArthurSrz commented 11 months ago

Nope. No failed requests. There seems to be no requests made to mapbox...

miles-grant-ibigroup commented 9 months ago

We found a fix for this! Please add MAP_BASE_URL: http://tile.openstreetmap.org/{z}/{x}/{y}.png to your front-end config