obsidian-leaflet icon indicating copy to clipboard operation
obsidian-leaflet copied to clipboard

Usability issues with markers that are close together

Open valentine195 opened this issue 3 years ago • 7 comments

Investigate if it's possible to make a "combined" marker that could group close together markers at zoom levels if they are overlapping, and display the grouped markers in the tooltip.

valentine195 avatar May 25 '21 20:05 valentine195

Probably too complicated, one can always use the mouse wheel to zoom around. Google Maps isn’t better …

Moonbase59 avatar May 25 '21 23:05 Moonbase59

Google Maps isn’t better …

But we could be! 😉

valentine195 avatar May 26 '21 12:05 valentine195

Hee hhe. Playing around with all the new features (and updating my friends’ notes), I just detected two friends living in exact the same house. Only one (which is topmost, by chance) can be selected.

You’re probably right. If it’s doable …

Moonbase59 avatar May 26 '21 18:05 Moonbase59

I'm actually researching if this is possible since one of my use-case is a location-based journal with more than 1000 markers near the same location.

I will fork and try to do it. It might be possible with L.markercluster (http://leaflet.github.io/Leaflet.markercluster/)

pixelart7 avatar Jun 10 '21 06:06 pixelart7

Interesting, I did not know this library existed. Thanks for letting me know!

valentine195 avatar Jun 10 '21 12:06 valentine195

Hey, I explored the code a little bit but I can't seem to understand where to edit. I'm fairly new to Obsidian plugin dev and Leaflet as a whole. I might need to leave it to you...

pixelart7 avatar Jun 11 '21 13:06 pixelart7

No worries, I appreciate the effort. This would be a rather comprehensive change, anyway - probably not possible for someone other than me to tackle it.

valentine195 avatar Jun 11 '21 13:06 valentine195