There are other ways than using external tile servers and to display historical map overlays on web pages.
Local Tile Set
You can create your own tile set from a georeferenced map using the beloved Geospatial Data Abstraction Library (GDAL). GDAL is an open source and powerful toolkit for working with geographic raster data. It has many build it functions that allow us to do all kinds of things with our data, including a script called gdal2tiles. Gdal2tiles is a Python script that splits up a raster image into a directory structure that can be read as an XYZ tile layer by your web map framework. GDAL doesn’t have a GUI and can be intimidating to some, but it’s a very efficient and feature rich tool.
![]()
Web Map Services (WMS)
A Web Map Service (WMS) is a protocol for requesting and getting georeferenced map images over the web, and is a very common way of sharing data over the web. In order to get a WMS map image, you need to request the map from the server. There are many servers hosting WMS services, such as Stanford’s Earthworks discovery platform for spatial data. There is an example in the Mapbox GL JS documentation showing how to add a WMS layer to your Mapbox map.