Remove map background

Hello,
I would like to remove the background of the map and keep only the circles and transmission lines. I imagine it’s something easy to do in the browser but I can’t find it.

Thank you
Leonardo

Hi @leocaserta,

This is not an official feature of Auspice, but you can achieve what you want using some JavaScript in the browser tools.

  1. Open browser inspector (right click > Inspect Element on most browsers)

  2. Go to “Console” tab

  3. Run this command:

    document.querySelector('.leaflet-tile-pane').style.visibility = 'hidden';
    

Here’s what it looks like on nextstrain.org/zika@2024-05-02:

zika-no-map

– Victor

1 Like

Thank you for your reply, @victorlin . I have an additional question: Is it possible to change the background color to white instead of grey?

Thank you

Try this:

document.querySelector('.leaflet-container').style.background = 'white';
1 Like