Map tiles
Where OpenCTI takes the tiles and country boundaries of its maps, and how to replace them with your own files, with no external map server.
OpenCTI draws its maps, such as the locations of an entity or the map widgets of dashboards, from map data it serves itself. This page explains where that data comes from, and how to replace it with a more detailed or regional map. Since version 7.260811, maps work with no configuration, air-gapped deployments included; before, the browsers load the tiles from a tile server.
How OpenCTI serves its maps New in 7.260811 LTS
The browser renders the maps from vector tiles in a PMTiles file. OpenCTI serves it at /maps/world.pmtiles and answers range requests, so the browser downloads only the tiles of the area and zoom level it shows. No external map server is involved, and the map follows the light or dark theme of the interface.
- Browser → OpenCTI: range requests
- Administrator → OpenCTI: upload
- OpenCTI → Custom file: wins when present
- OpenCTI → Bundled file: otherwise
The tiles come from one of two files:
- the bundled file, in the image of OpenCTI, at the path
APP__MAP_BUNDLED_FILE_PATH(./static/maps/world.pmtilesby default); - a custom file, uploaded by an administrator and stored in the S3 bucket of OpenCTI.
A custom file, when there is one, wins over the bundled one.
Browsers keep the tiles for up to 24 hours: after an upload or a deletion, a browser that already showed a map keeps the previous tiles until then, unless its cache is emptied.
The APP__MAP_*_BUNDLED_FILE_PATH settings only move the bundled files, for a custom image of OpenCTI: you do not need them to use your own map.
Get a PMTiles file
Protomaps publishes a daily build of the whole planet, about 137 GB. A low-zoom extract, from zoom 0 to 6, is about 30 to 80 MB and enough for OpenCTI. The go-pmtiles command line extracts it with range requests, without downloading the whole planet:
pmtiles extract https://build.protomaps.com/20260722.pmtiles world.pmtiles --maxzoom=6
Replace the date with that of a recent build. For a regional map, the Protomaps command line extracts an area with --bbox; planetiler builds tiles from OpenStreetMap data.
Upload your map
-
Go to .
-
In the Custom map row, click Upload, then select your
.pmtilesfile. A new upload replaces the custom map in place.Check that it workedThe Custom map row shows your file, with its name and size. A browser that already showed a map shows your tiles once its copy of the previous file expires, within 24 hours.
To go back to the bundled map, click Delete in the Custom map row: it takes effect at once, with no confirmation.
Coming from an external tile server
Earlier versions loaded raster tiles from a tile server, set with APP__MAP_TILE_SERVER_DARK and APP__MAP_TILE_SERVER_LIGHT. OpenCTI now ignores these settings: remove them, and the tile server if you ran one.
What's next
- Install offline or with FIPS 140-3.
- Configure the shared services, for the S3 bucket that holds the custom files.