henrythasler / Leaflet.Geodesic

Add-on to draw geodesic lines with leaflet
GNU General Public License v3.0
156 stars 27 forks source link

great circle outside a single world view #6

Closed franckl closed 9 years ago

franckl commented 9 years ago

Hi. I am trying to represent a great circle with a center at [0,160]. As you can see on the following jsfiddle http://jsfiddle.net/ysaLea34/ the circle is only projected on a single "earth view" (after 180E the circle is cut and drawn on the left side of the map)

Is there a way to show multiple circles when multiple earth view are displayed ?

Thanks

henrythasler commented 9 years ago

I have created a testing branch where you can draw circles w/o wrapping. Same as with lines. I'm still looking into some ideas on the copy/repeat request.

On 14.11.2014 20:50, franckl wrote:

Hi. I am trying to represent a great circle with a center at [0,160]. As you can see on the following jsfiddle http://jsfiddle.net/ysaLea34/ the circle is only projected on a single "earth view" (after 180E the circle is cut and drawn on the left side of the map)

Is there a way to show multiple circles when multiple earth view are displayed ?

Thanks

— Reply to this email directly or view it on GitHub https://github.com/henrythasler/Leaflet.Geodesic/issues/6.

franckl commented 9 years ago

Thanks Henry, it works like a charm. It seems that displaying multiple circle for each world visible is a leaflet limitation. See https://github.com/Leaflet/Leaflet/pull/1293

henrythasler commented 9 years ago

feature merged to master