Allow using custom tile server via HTTP #3976
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Online maps prevent Meshtastic app to be used with no internet connection. The recent app version allows adding custom tile servers. So in order to make it autonomous you can spin up a local tile server on your Android device and point the Meshtastic app to fetch tiles from localhost.
Problem with this approach is that the map component only allows HTTPS schema to be used. And making your local tile server working with HTTP is not a trivial task, mainly due to the self signed certificates.
This PR adds network configuration that will allow the app to use HTTP for localhost only.
With this you can spin up a tiny tile server and use it as a map tile source without any internet connection