How to use the contextily.sources function in contextily

To help you get started, we’ve selected a few contextily examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ResidentMario / geoplot / geoplot / geoplot.py View on Github external
def draw(self):
            ax = plot.ax
            if len(self.df.geometry) == 0:
                return ax

            basemap, extent = ctx.bounds2img(
                *self._webmap_extent, zoom=self.zoom, 
                url=getattr(ctx.sources, provider), ll=True
            )
            extent = (extent[0], extent[1], extent[3], extent[2])
            ax.imshow(basemap, extent=extent, interpolation='bilinear')
            return ax

contextily

Context geo-tiles in Python

BSD-3-Clause
Latest version published 2 months ago

Package Health Score

88 / 100
Full package analysis

Similar packages