nrenner / brouter-web

Web client for BRouter, a routing engine based on OpenStreetMap
https://brouter.de/brouter-web/
MIT License
371 stars 73 forks source link

Configuration option to disallow custom profiles? #141

Open Phyks opened 6 years ago

Phyks commented 6 years ago

Hi,

Offering custom profiles on a BRouter instance means offering a file upload feature, which might not be possible in some contexts.

I was looking for a way to disable the custom profile feature in BRouter-web (not to expose an option which is not working as the API endpoint is not responding). I thought deleting the "custom" entry and hiding the custom profile tab would do the trick, but it seems part of the code actually assumes the first entry of the profiles list is "Custom".

What do you think about offering a configuration option to hide custom profiles features?

Thanks!

nrenner commented 5 years ago

Adding an option to disable custom profiles is fine by me. The code handling the custom option and profile isn't ideal, so making it configurable might be a bit tricky.

In general, it would be nice to have the UI better customizable and extendable.