Skip to content

REF: Outsource providers to xyzservices #183

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Oct 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
# `contextily`: context geo tiles in Python

`contextily` is a small Python 3 (3.6 and above) package to retrieve tile maps from the
`contextily` is a small Python 3 (3.7 and above) package to retrieve tile maps from the
internet. It can add those tiles as basemap to matplotlib figures or write tile
maps to disk into geospatial raster files. Bounding boxes can be passed in both
WGS84 (`EPSG:4326`) and Spheric Mercator (`EPSG:3857`). See the notebook
`contextily_guide.ipynb` for usage.


[![Tests](https://github.com/geopandas/contextily/actions/workflows/tests.yaml/badge.svg)](https://github.com/geopandas/contextily/actions/workflows/tests.yaml)
[![codecov](https://codecov.io/gh/geopandas/contextily/branch/master/graph/badge.svg?token=5Eu3L1peBb)](https://codecov.io/gh/geopandas/contextily)
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/geopandas/contextily/master?urlpath=lab/tree/notebooks/intro_guide.ipynb)

![Tiles](tiles.png)

The current tile providers that are available in contextily are the providers
defined in the [leaflet-providers](https://github.com/leaflet-extras/leaflet-providers)
defined in the [`xyzservices`](https://xyzservices.readthedocs.io)
package. This includes some popular tile maps, such as:

* The standard [OpenStreetMap](http://openstreetmap.org) map tiles
Expand All @@ -29,10 +30,11 @@ package. This includes some popular tile maps, such as:
* `requests`
* `geopy`
* `joblib`
* `xyzservices`

## Installation

**Python 3 only** (3.6 and above)
**Python 3 only** (3.7 and above)

[Latest released version](https://github.com/geopandas/contextily/releases/), using pip:

Expand Down
1 change: 1 addition & 0 deletions ci/envs/37-minimal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ dependencies:
- rasterio
- requests
- joblib
- xyzservices
# testing
- pip
- pytest
Expand Down
1 change: 1 addition & 0 deletions ci/envs/38-latest-conda-forge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ dependencies:
- rasterio
- requests
- joblib
- xyzservices
# testing
- pip
- pytest
Expand Down
3 changes: 1 addition & 2 deletions contextily/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
`contextily`: create context with map tiles in Python
"""

from . import tile_providers as sources
from ._providers import providers
import xyzservices.providers as providers
from .place import Place, plot_map
from .tile import *
from .plotting import add_basemap, add_attribution
Expand Down
Loading