javalent / obsidian-leaflet

Adds interactive maps to Obsidian.md using Leaflet.js
481 stars 29 forks source link

Improvement for marker visibility #363

Closed dmn-bernard closed 1 year ago

dmn-bernard commented 1 year ago

Hello there! I really love this obsidian plugin, thank you for all the effort you spend on it! ❤️ 👍

I was a bit frustrated that my markers are not that visible depending on their colour and the image below them. So I came in with a tiny CSS snippet that improved a bit their overall visibility:

.leaflet-marker-icon svg {
  filter: drop-shadow(1px 3px 3px black);
}

It really improved the visibility in my view. I was thinking this could be an easy addition to the plugin itself, but I was bit too lazy to do a pull request, so I'm dropping it there 🙃

Before

Capture d’écran 2023-04-08 à 16 29 56

After

Capture d’écran 2023-04-08 à 16 29 24
valentine195 commented 1 year ago

This is a great improvement, thanks for the suggestion.