esm7 / obsidian-map-view

Interactive map view for Obsidian.md
MIT License
546 stars 25 forks source link

World Map Display Question #219

Open cjt3 opened 5 months ago

cjt3 commented 5 months ago

Sorry for the vague title, but I'm not sure how to succinctly state what I'm asking. When plotting two points on a map -- one in Asia and one in North America -- I would like to show Asia on the left and North America on the right. However, I can only get the map to show the reverse. Is there a way for me to change a setting somewhere, or would this be a new feature request.

Map view required to show both points: Screenshot 2024-01-07 094116

Map view I would like to see, but Asia point is off map to the right: Screenshot 2024-01-07 094248

Moving the center point slightly shows the Asia point, but now the North America point is off map to the left: Screenshot 2024-01-07 094222

esm7 commented 5 months ago

By default Leaflet (the underlying mapping infrastructure) performs "wrapping", and Map View goes along with it -- but seems like there's indeed a bug in the way markers are displayed in a wrapped map. I'm not sure if that's a Map View bug or a Leaflet bug, but I'll look into it.