Skip to main content

Use OpenStreetMap tiles as basemaps in python / matplotlib

Project description

Build Status


Uses OpenStreetMap tiles, or other tile servers, to produce “basemaps” for use with matplotlib. Uses a SQLite database to cache the tiles, so you can experiment with map production without re-downloading the same tiles. Supports Open Data tiles from the UK Ordnance Survey.


Pure python. Uses requests to make HTTP requests for tiles, and pillow for image manipulation.


pip install tilemapbase

or build from source:

python install

or directly from GitHub:

pip install


OpenStreetMap data

OpenStreetMap Data is “© OpenStreetMap contributors”, see

Please remember that tile set usage is subject to constraints:

Ordnance Survery data

Contains OS data © Crown copyright and database right (2017)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tilemapbase-0.4.7.tar.gz (25.1 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page