The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Get Started with LeafletJS Mapping

Get Started with LeafletJS Mapping

3:13
Leaflet makes creating maps in the browser *dead simple*. With some HTML and 3 lines of JavaScript, we can quickly have a map displaying.
Watch this lesson now
Avatar
egghead.io

Leaflet makes creating maps in the browser dead simple. With some HTML and 3 lines of JavaScript, we can quickly have a map displaying.

Avatar
Benjamin

What, if any, are the benefits of using Leaflet over Google Maps?

Avatar
Ben

Hey Benjamin,

You can definitely be successful with either solution. The first advantage of Leaflet that comes to mind is alternate tile providers. Google obviously uses their own map tiles (the images that are patched together to construct the map view), but using Leaflet you can use any provider you want. We used Mapbox in the video, but there is also OpenStreetMap, MapQuest, and Bing.

All of the providers have different licensing policies, so using Leaflet means you can choose the one that works best for your needs.

I'm sure that is not an exhaustive list of things to consider, but I hope it helps.

Ben

In reply to Benjamin
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?