[openstreetmap/openstreetmap-website] Dark Mode for maps (Issue #5328)

Andy Allan notifications at github.com
Thu Dec 12 14:06:47 UTC 2024


> @gravitystorm Are you against setting map mode to light by default for now?

I'm not quite sure what you mean here. I'm against changing any default preferences (they should remain `auto` by default), if that's what you are asking.

Here's two tables that might help. The first shows how the "desired" map is calculated. The second table shows what should be displayed for each layer, for each "desired" map, based on what we know from the cartographers so far.

<table>
    <thead>
        <tr>
            <th>Browser prefers-color-scheme</th>
            <th>Website Color Scheme Preference</th>
            <th>Map Color Scheme Preference</th>
            <th>Result: "Desired" Map Mode</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td rowspan=9>Light (or none)</td>
            <td rowspan=3>Auto</td>
            <td>Auto</td>
            <td>= Light Maps</td>
        </tr>
        <tr>
            <td>Light</td>
            <td>= Light Maps</td>
        </tr>
        <tr>
            <td>Dark</td>
            <td>= Dark Maps</td>
        </tr>
        <tr>
            <td rowspan=3>Light</td>
            <td>Auto</td>
            <td>= Light Maps</td>
        </tr>
        <tr>
            <td>Light</td>
            <td>= Light Maps</td>
        </tr>
        <tr>
            <td>Dark</td>
            <td>= Dark Maps</td>
        </tr>
         <tr>
            <td rowspan=3>Dark</td>
            <td>Auto</td>
            <td>= Dark Maps</td>
        </tr>
        <tr>
            <td>Light</td>
            <td>= Light Maps</td>
        </tr>
        <tr>
            <td>Dark</td>
            <td>= Dark Maps</td>
        </tr>
        <tr>
            <td rowspan=9>Dark</td>
            <td rowspan=3>Auto</td>
            <td>Auto</td>
            <td>= Dark Maps</td>
        </tr>
        <tr>
            <td>Light</td>
            <td>= Light Maps</td>
        </tr>
        <tr>
            <td>Dark</td>
            <td>= Dark Maps</td>
        </tr>
        <tr>
            <td rowspan=3>Light</td>
            <td>Auto</td>
            <td>= Light Maps</td>
        </tr>
        <tr>
            <td>Light</td>
            <td>= Light Maps</td>
        </tr>
        <tr>
            <td>Dark</td>
            <td>= Dark Maps</td>
        </tr>
         <tr>
            <td rowspan=3>Dark</td>
            <td>Auto</td>
            <td>= Dark Maps</td>
        </tr>
        <tr>
            <td>Light</td>
            <td>= Light Maps</td>
        </tr>
        <tr>
            <td>Dark</td>
            <td>= Dark Maps</td>
        </tr>
    </tbody>
</table>

<table>
    <thead>
        <tr>
            <th>Layer</th>
            <th>"Desired" Map Mode</th>
            <th>Result</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td rowspan=2>Standard</td>
            <td>Light</td>
            <td>Normal Tiles</td>
        </tr>
        <tr>
            <td>Dark</td>
            <td>Normal Tiles*</td>
        </tr>
        <tr>
            <td rowspan=2>CycleOSM</td>
            <td>Light</td>
            <td>Normal Tiles</td>
        </tr>
        <tr>
            <td>Dark</td>
            <td>Normal Tiles*</td>
        </tr>
        <tr>
            <td rowspan=2>Cycle Map</td>
            <td>Light</td>
            <td>Normal Tiles</td>
        </tr>
        <tr>
            <td>Dark</td>
            <td>Normal Tiles</td>
        </tr>
        <tr>
            <td rowspan=2>Transport Map</td>
            <td>Light</td>
            <td>Normal Tiles</td>
        </tr>
        <tr>
            <td>Dark</td>
            <td><code>transport-dark</code> Tiles</td>
        </tr>
        <tr>
            <td rowspan=2>Tracestrack Topo</td>
            <td>Light</td>
            <td>Normal Tiles</td>
        </tr>
        <tr>
            <td>Dark</td>
            <td>Normal Tiles*</td>
        </tr>
        <tr>
            <td rowspan=2>Humanitarian</td>
            <td>Light</td>
            <td>Normal Tiles</td>
        </tr>
        <tr>
            <td>Dark</td>
            <td>Normal Tiles*</td>
        </tr>
    </tbody>
</table>

(* = what we are doing by default, until we hear directly from the cartographers. This could change to filters or alternative tiles if that's what they ask for.)

I hope this is clear (and I hope I didn't make any mistakes!) but I'm happy to answer more questions.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/5328#issuecomment-2539051340
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/5328/2539051340 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20241212/d359f473/attachment-0001.htm>


More information about the rails-dev mailing list