graphhopper-navigation-example-legacy icon indicating copy to clipboard operation
graphhopper-navigation-example-legacy copied to clipboard

night mode

Open karussell opened this issue 5 years ago • 8 comments

This would be cool at some point

karussell avatar Jan 19 '19 14:01 karussell

In theory the SDK can handle different map styles for day and night mode and I think an automatic switch depending on the time is also possible.

Right now, we don't have a night map style though.

boldtrn avatar Jan 21 '19 12:01 boldtrn

:+1:

karussell avatar Jan 21 '19 13:01 karussell

I added the dark-matter map style to Mapilion - you can try it by going to Mapilion, click on Dark Matter next to the hillshading options. I could set this as night style for navigation? I don't think dark-matter is ideal for navigating, because it misses many essential details, but it would be good enough to show the switch between day/night.

boldtrn avatar Jan 22 '19 15:01 boldtrn

Hmmh, the contrast is too weak. But this is also not such a high prio :)

karussell avatar Jan 22 '19 15:01 karussell

When using minimum light the current theme also works okayish

karussell avatar Jan 22 '19 15:01 karussell

It's up to you. I think it should be straight forward to change the night mode setting. I also think the Dark-Matter style is not ideal, but it could be better than our current style and show users that they can set two different styles. We could also try and make this configurable in the settings (but it might not work during navigation then, because we set the navigation values in xml and I am not sure if we could do this in the regular code).

boldtrn avatar Jan 23 '19 15:01 boldtrn

Let's wait for real demand as this seems to be not that easy - we would need a light sensor access as this should be enabled also in a tunnel IMO.

karussell avatar Jan 23 '19 16:01 karussell

we would need a light sensor access as this should be enabled also in a tunnel IMO

Yes, but I think the better way to approach this is something like PathDetails than using a light sensor. This has been added like this to the Mapbox SDK here.

boldtrn avatar Feb 01 '19 13:02 boldtrn