Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
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
The Data Visualization Workshop

You're reading from   The Data Visualization Workshop A self-paced, practical approach to transforming your complex data into compelling, captivating graphics

Arrow left icon
Product type Paperback
Published in Jul 2020
Publisher Packt
ISBN-13 9781800568846
Length 536 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Mario Döbler Mario Döbler
Author Profile Icon Mario Döbler
Mario Döbler
Tim Großmann Tim Großmann
Author Profile Icon Tim Großmann
Tim Großmann
Arrow right icon
View More author details
Toc

Tile Providers

geoplotlib supports the use of different tile providers. This means that any OpenStreetMap tile server can be used as a backdrop for our visualization. Some of the popular free tile providers include Stamen Watercolor, Stamen Toner, Stamen Toner Lite, and DarkMatter. Changing the tile provider can be done in two ways:

  • Make use of built-in tile providers:

    geoplotlib contains a few built-in tile providers with shortcuts. The following code shows you how to use it:

    geoplotlib.tiles_provider('darkmatter')
  • Provide a custom object to the tiles_provider method:

    By providing a custom object to geoplotlib's tiles_provider() method, you will not only get access to the url parameter from which the map tiles are being loaded but also see the attribution parameter displayed in the lower-right corner of the visualization. We are also able to set a distinct caching directory for the downloaded tiles. The following code demonstrates how to provide a custom object...

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