This adds conditional support for using a custom tileserver api.
It's implemented in a manner that is optional and non-breaking. After this merges, running the game locally or at http://disastergame.civicplatform.org/ will continue to work as it always has been.
However, if you run the game with TILESERVER set in your environment, this value will be appended to the index.html file via the express server and made accessible via a selector in state/settings.
This adds conditional support for using a custom tileserver api.
It's implemented in a manner that is optional and non-breaking. After this merges, running the game locally or at http://disastergame.civicplatform.org/ will continue to work as it always has been.
However, if you run the game with
TILESERVER
set in your environment, this value will be appended to the index.html file via the express server and made accessible via a selector instate/settings
.Example for local use:
You can also see how this will be used on site at OMSI over here.