Link to home
Start Free TrialLog in
Avatar of Camillia
CamilliaFlag for United States of America

asked on

Difference between Leaflet and MapBox?

I'm working on a project and we need to display a map of the US.

Please help me understand this...

My teammate says we need to get Leaflet and Leaflet only displays the map. It does NOT zoom in and zoom out on the map.
He says for zooming in and out...we need to use MapBox.

I was looking at this tutorial http://leafletjs.com/examples/quick-start/

Questions:
1.  Leaflet display a map but "tiles" for the map need to come from a map provider like Mapbox or Googlemaps?

2. Leaflet has "zoom" feature, so why do I need to use Mapbox?  http://leafletjs.com/examples/zoom-levels/
ASKER CERTIFIED SOLUTION
Avatar of Nicholas
Nicholas

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Camillia

ASKER

ah. So, Mapbox contains the "tiles"..the actual map images...correct?

Mapbox is like a map server...Googlemap is also similar to Mapbox...it has the map images?

Also, Leaflet doesn't do zooming?
Avatar of Nicholas
Nicholas

Correct
Correct
Wrong
Maybe I misunderstood my coworker about zooming and Leaflet.

Thanks. Your answers helped me understand this better.
To answer this question you need to understand the different components with a mapping solution.

In a nutshell - there is the part that supplies the maps (tiles) and there is the JavaScript library that interacts with those tiles.

If you use something like Google Maps you get both - the Google API interacts with the Google Tile service.

If you want you can roll your own maps and use a Library like leaflet to interact with it - for instance you can make your own fantasy world as a very large image - use a map tiler to break that up into tiles for different zoom levels and then use Leaflet to display it and interact with it.

Leaflet can also interact with other map sources like OpenStreetMaps or Google Tiles.

MapBox is a map provider. It provides a Mapbox api that you can use with Leaflet to interact with their tiles.

So Leaflet is the library for manipulating and viewing map tiles - Mapbox is a source of tiles.