jawj / OverlappingMarkerSpiderfier

Deals with overlapping markers in Google Maps JS API v3, Google Earth-style
http://blog.mackerron.com
836 stars 238 forks source link

Marker lines don't originate from the same point #169

Closed kwebster16 closed 2 years ago

kwebster16 commented 4 years ago

Just wondering if there's anything I'm missing.

I'm assuming that the lines are pointing to the actual locations of the markers when they're spiderified. But I find it looks a little odd, and I'm often getting lines that are originating a pixel or two off at the default zoom level of my map.

Is there a way to have them all originate out from a central location?

jawj commented 4 years ago

This is by design: each line emanates from the original location of its marker. I suppose if you wanted to you could calculate the average location and have them all start there, but it's not a change I'm inclined to make in general, since it is extra effort for a more misleading display.