geo, add-on
Custom Tile Providers for Maps
Janez Demšar
Nov 30, 2026
Have you noticed that many maps that you see on web pages or in applications do not offer continuous zoom levels, but jump from one zoom level to another? This is because most maps are made of tiles, which are small images representing a part of the map at a certain zoom level.
Most software — including Orange's Geo add-on — does not compute its own tiles, but relies on tile providers to supply them. There are many tile providers available, but fewer and fewer are free — which is understandable, since generating and hosting tiles requires resources and maintenance. Some tile providers offer free access to their tiles, but with limitations on usage or features.
The two widgets that show maps, Geo Map and Choropleth, use OpenStreetMap tiles by default. The user can switch to another style. But there's a problem: a provider may stop offering tiles, or start requiring a subscription or an API key to use them. The provider that offered "light" maps recently went dark and started serving empty tiles with the message "API KEY REQUIRED". Orange obviously cannot share an API key among all users, as it would quickly run out of quota.
The new Geo add-on provides a way to add custom tile providers, so that users can use their own tiles or switch to another provider if one of the default providers — like those providing light and dark maps — stops working. Most importantly, users can add providers that require an API key or a subscription.
To use your own provider, you first need to find one. A good place to start is the OpenStreetMaps wiki page on tile servers. There's a small selection of free providers, many commercial providers, and some that have a free tier with limited usage. To show how to use the latter, we shall — without endorsing it — use Stadia Maps as an example.
To use their maps, we needed to create an account and an API key. The procedure is straightforward, and the key is free for up to 200,000 requests per month. Next, we need to choose a map style and find the URL template for the tiles. Say we like the Stamen Toner style, which is a black-and-white map with high contrast. The page gives the following URL template for the raster tiles (which is what we need): https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}{r}.png.
The URL template includes {x} and {y} placeholders for the tile coordinates, and {z} for the zoom level; Orange will replace these with the actual values. There is also an {r} placeholder for the resolution, which can be empty or @2x for high-resolution tiles. Orange will not replace {r} with anything, so we will manually set it to @2x. We also need to add the API key as a query parameter, so the final URL template is
https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}@2x.png?api_key=<api-key>
where we need to replace <api-key> with our actual API key.
The procedure is similar for other providers.
Let us now add this provider to Orange. Add-ons cannot add a dialog with settings, so the Geo add-on provides a widget called "Manage Geo Services". It lists the default providers and allows adding new ones. To use Stamen Toner, we fill in the necessary data.
- Name can be anything, but Stamen Toner would be appropriate here.
- URL template is the one we constructed above, with our API key.
- Dark informs the widget whether this is a dark map, so it can adjust the colors of the labels accordingly.
- Size is the size of the tiles. The default size is 256 × 256 pixels, but Stadia's retina tiles are 512 × 512 pixels, so we need to set this to 512. If we enter a number that is too large, the widget will show empty spaces between tiles; if we enter one that is too small, the tiles will overlap.
- Max zoom is the maximum zoom level that the provider supports. We can find this information in the provider's documentation. Stadia Maps supports up to zoom level 20, so we enter 20 here.
- Attribution is the text that will be shown on the map to credit the provider. We can find this information in the provider's documentation. Stadia Maps requires the following attribution:
© Stadia Maps © OpenMapTiles © OpenStreetMap.
The newly added provider is instantly available in the Geo Map and Choropleth widgets. We can switch to it and see the Stamen Toner map.
Beautiful, ain't it?