user4015
user4015

Reputation: 217

How to add Mapbox basemap to leaflet?

I am using the Leaflet example of mapping points from CSV. But I want to use my mapbox basemap.

https://github.com/perrygeo/leaflet-simple-csv

I am new to leaflet. Any help much appreciated.

Upvotes: 0

Views: 2049

Answers (1)

geraldarthur
geraldarthur

Reputation: 1524

You can pass Leaflet a URL to the map's TileJSON endpoint. Here's a basic template as well as some more documentation on Mapbox's API.

http://{s}.tiles.mapbox.com/v3/user.map-id/{z}/{x}/{y}.png

Upvotes: 1

Related Questions