Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Leaflet.js Essentials

You're reading from   Leaflet.js Essentials Create interactive, mobile-friendly mapping applications using the incredibly light yet powerful Leaflet.js platform.

Arrow left icon
Product type Paperback
Published in Aug 2014
Publisher
ISBN-13 9781783554812
Length 180 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

ESRI basemaps

ESRI provides eight different basemaps that you can use in your Leaflet map. The eight layers are the following:

  • Streets
  • Topographic
  • National Geographic
  • Oceans
  • Gray
  • Dark gray
  • Imagery
  • Shaded relief

In addition to the eight basemaps, there are six basemap label layers, OceansLabels, GrayLabels, DarkGrayLabels, ImageryLabels, ImageryTransportation, and ShadedReliefLabels, to compliment the basemaps. If that is not enough, there is also a retina version of each basemap.

To use an ESRI basemap, follow these steps:

  1. First, add a reference to the ESRI-leaflet file. It is in beta, but that doesn't mean that it is not fully functional:
    <script src="http://cdn-geoweb.s3.amazonaws.com/esri- leaflet/0.0.1-beta.5/esri-Leaflet"></script>

    Note

    On its GitHub repository, ESRI states that the library is on track to be moved from beta to production in 2014. You can find more information and download the additional files at https://github.com/Esri/esri-leaflet/.

  2. Next, create an ESRI...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image