1

I need to develop Leaflet map which will show the whole world. Also, I need to draw some arrows which will show paths of migrations in the world. The important thing to say that those arrows need to be curved. Do you have some advice how can that be shown on the map in Leaflet API?

My ideas: Is it possible to show some direction arrows with RaphaelJS? I see that Leaflet has Raphael plugin so we can add Raphael object on the map. Is it possible to draw a polygon which will be arrow shape and overlay it on the map?

1 Answer 1

2

Much easier just to draw them in a GIS system and then add them as a layer to the map. Raphael would work, but it seems like the long way around.

Also any curve is really just made up of a series of straight lines so you could likely achieve the required effect using Leaflet.

2
  • So you mean draw it like a polygon? Commented Dec 18, 2012 at 12:20
  • Yes a polygon or a line. I would probably go with a line as a polygon will might not look so good at all zoom levels. Whilst a line the thickness will the same at all zoom levels. Do a Google image search for "whether map" you'll probably get some good inspiration there. Commented Dec 19, 2012 at 2:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.