Skip to content

Basemaps

The map under your data is a MapLibre style without its labels, drawn by basemaplibre: OpenFreeMap.Dark by default and OpenFreeMap.Positron with --light.

$ pixel-map --example london_water

OpenFreeMap.Dark

$ pixel-map --example london_water --light

OpenFreeMap.Positron

Other styles

--basemap takes a name from the style gallery of basemaplibre:

$ pixel-map --example london_water -t VersaTiles.Colorful -c blue

VersaTiles.Colorful

It can be satellite imagery or a relief:

$ pixel-map --example london_water -t VersaTiles.Satellite -c C0 -a 0.6

VersaTiles.Satellite

$ curl -sLO https://raw.githubusercontent.com/nvkelso/natural-earth-vector/master/geojson/ne_10m_urban_areas.geojson
$ pixel-map ne_10m_urban_areas.geojson --bbox 5,43,11,47 -t Mapterhorn.Relief -c black

Mapterhorn.Relief

The URL or the path of a style JSON works as well:

$ pixel-map --example london_buildings -t https://tiles.openfreemap.org/styles/bright

A style of a URL

Raster tiles

Anything else is drawn by contextily, if you have it installed (pip install contextily): a provider of xyzservices or a URL of tiles.

$ pixel-map --example london_buildings -t OpenTopoMap -c red

OpenTopoMap

No basemap

--no-background leaves only your data, on black or on the color of --background-color:

$ pixel-map --example london_buildings --no-background

No basemap

$ pixel-map --example london_buildings --no-background --background-color midnightblue -c gold

No basemap on a color