Creating a map with multiple background layers
You can use multiple background layers in a map chart. This enables you to create layered base maps for your map chart data.
Some WMS sources include layers with transparency. With these sources, you can overlay the WMS background layer on top of a base map or other layers. Images can also be placed over other background layers. This enables you to create more complex base maps for your data.
Whether or not an WMS transparency layer supports transparency is dependent on the WMS source.
In this map example, a custom TMS is used in a background layer. A WMS background layer is placed on top, using a WMS endpoint from the National Ocean and Atmospheric Administration. The WMS layer shows weather radar data.
Map chart with a point layer overlaid on TMS and WMS background layers

Dataset
This example uses a single table for data, Cities, with an external TMS and WMS data from external sources.
How I built this
This example adds layers so that they are layered on top of each other in the final order. If you add these layers in a different order, you click and drag layers into the correct order you want in Layers.
See also: Managing Content Security Policy
Before you start
Before you start, the following origins must be added to the allowlist for the Content Security Policy. This is done in the Administration activity center by a tenant administrator.
| Origin | Directives |
|---|---|
| a.tile.openstreetmap.org | img-src |
| nowcoast.noaa.gov | connect-src, img-src |
For more information about adding Content Security Policy entries, see Creating a CSP entry.
Building the map
Do the following:
- Add the table Cities to your app. You can copy and paste the table using manual entry.
- In a sheet, add a map chart.
- In Map settings, set Base map to None.
-
Add a background layer and do the following:
-
In Data, do the following:
- For Format, select TMS.
- For URL, enter https://a.tile.openstreetmap.org/${z}/${x}/${y}.png.
- For Attribution, enter © OpenStreetMap contributors.
-
In Options > General, do the following:
- Set Show legend to None.
-
In Options > Presentation, do the following:
- Set Opacity to 0.5.
-
-
Add a background layer and do the following:
-
For Label, enter Weather Radar Base Reflectivity Mosaics.
- For Format, select WMS and click WMS setup. Do the following:
- For WMS server URL, enter https://nowcoast.noaa.gov/geoserver/observations/weather_radar/ows.
- For Version, select 1.3.0.
- Click Load WMS.
- In Step 2 (Settings), set the following settings:
- Set CRS to EPSG:3857.
- Turn on the Transparent setting.
- Select all options under Weather Radar Base Reflectivity Mosaics.
- Click Save.
- For Attribution, enter NWS, DOD, NOAA, and nowCOAST.
-
-
Add a point layer and do the following:
- In Data, add Cities as the dimension.
- In Location, do the following:
- Set Scope for locations to Custom.
- Set Country to 'USA'.
- In Colors, set Colors to Custom and set Color to f93f17.
- In Size & Shape, set Bubble size to 9.