To specify your own provider, create a function with the signature
(x: number, y: number, z: number, dpr?: number) => string which
returns the URL of the tile.
One nice provider is MapTiler. Their maps look good and their free plan provides up to 100k tile loads per month. You will need to sign up for an account and pass your API key and map id to the following provider
Pigeon Maps comes with a few providers you can
import and use directly.
This is the default provider. Free and supported by donations. Does not support HiDPI/retina tiles.
Orient yourself with our terrain maps, featuring hill shading and natural vegetation colors. These maps showcase advanced labeling and linework generalization of dual-carriageway roads.
These high-contrast B+W (black and white) maps are perfect for data mashups and exploring river meanders and coastal zones.
Nice looking commercial maps from MapTiler. You get 100k tiles for free, so it's a no-brainer for websites with limited traffic.
Pass the API key and the basemap type (e.g.
topo, etc) to the imported function.