obsidian-map-view icon indicating copy to clipboard operation
obsidian-map-view copied to clipboard

Grid lines over the map

Open BalurPoco opened this issue 1 year ago • 9 comments

Hi there!

How can I turn these grid lines off? lines

BalurPoco avatar Sep 23 '24 05:09 BalurPoco

Hi, These lines are most likely caused by a misbehaving custom style, theme or CSS snippet, that is unintentionally adding black borders to the map tiles. Can you check if it happens with any such styles turned off (i.e. the default Obsidian theme and no custom CSS snippets)? If that's the case, the next step would be to locate and fine-tune the misbehaving CSS rule.

esm7 avatar Sep 23 '24 06:09 esm7

Now I turned my two CSS snippet off (that's all), and changed the theme back to Default, restarted, but no luck. White lines in light mode, black in dark mode.

white dark

BalurPoco avatar Sep 23 '24 07:09 BalurPoco

Oh I now notice that I see them too. It was probably introduced in some of the Obsidian update and you are the first to notice! What Obsidian version are you using?

esm7 avatar Sep 23 '24 07:09 esm7

I'm on the latest public release on Desktop: 1.6.7

BalurPoco avatar Sep 23 '24 07:09 BalurPoco

This bad boy breaks it. Now how can we fix the map? :)

zoom-levele

BalurPoco avatar Sep 23 '24 07:09 BalurPoco

There are many suggestions here for how to solve it, you can try them, or I'll investigate when I get the chance soon.

esm7 avatar Sep 23 '24 08:09 esm7

There are many suggestions here for how to solve it, you can try them, or I'll investigate when I get the chance soon.

Thanks.

Maybe it's not an universal solution. I use Obsidian with a 110% zoom level, and this CSS snippet solve the issue for me:

.leaflet-tile-container img { width: 257px !important; height: 257px !important; }

BalurPoco avatar Sep 23 '24 08:09 BalurPoco

@esm7 If you can, check it out yourself, because it might be possible to do it better in the plugin code.

BalurPoco avatar Sep 23 '24 09:09 BalurPoco

That's a great starting point, thanks :)

esm7 avatar Sep 23 '24 09:09 esm7