boofighter
boofighter

Reputation: 171

Draw routes in Leaflet and Wax

I'm using Leaflet and MapBox. I need to develop an api which will show certain city points with labels, and accordingly draw routes between them. I have BlueMarble tiles till certain zoom, and then MapBox Streets. What is the best way to realize that idea? Are circles and paths the best option? Thank you.

Upvotes: 0

Views: 6012

Answers (1)

Dimitry
Dimitry

Reputation: 71

I am not sure that you need to create an API for what you want to do.

http://leaflet.cloudmade.com/examples/geojson.html

In the Leaflet tutorials it shows you how to create LineStrings and Points from GeoJson data. So with latitude and longitude coordinates for the Cities you can create Points and use LineStrings to create the routes and add a them as a GeoJson Layer to the map.

Upvotes: 3

Related Questions