For the complete documentation index, see llms.txt. This page is also available as Markdown.

External map layer

To add an external WMS layer to the tracking map.

In Map settings >> External layer

SERVICE

WMS

REQUEST

GetMap

VERSION

1.3.0 or 1.1.0

STYLES

empty

CRS (1.3.0) or SRS (1.1.0)

EPSG:3857

BBOX

{bbox-epsg-3857} a variable

WIDTH

256; same as tile size respectively

HEIGHT

256; same as tile size respectively

FORMAT

image/png or image/jpeg

TRANSPARENT

true

LAYERS: different, available in GetCapabilities e.g. https://wxs.ign.fr/yourkey/geoportail/r/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities

Use GeoTIFF

Download the sample file GeoTiff
  1. mapbox style editor "Create a style" and "Start from scratch"

  2. Add a "Custom layer" and upload the GeoTIFF or KML file.

  3. mapbox creates the layer ID once the GeofTIFF is uploaded racemap.48p1az6b

  4. RACEMAP >> Map Settings >> External Layers Add URL as external WMS: https://api.mapbox.com/v4/racemap.48p1az6b/{z}/{x}/{y}.png?access_token={privateKeyMapbox} and replace {privateKeyMapbox} with your mapbox key.

The result shows the original TIFF file: https://racemap.com/player/6a01a8d5bd1f6d9fc6f4f50d

Remove the border in the GeoTIFF

  1. Free download of QGIS

  2. Load GeoTIFF and create a new GeoPackage-layer

  3. Select "Polygon"

  4. Define borders with the pencil and polygon tool - left click: add point, right click: finish polygon.

  5. Raster >> Extraction >> Clip Raster by Mask Layer: Data outside the polygon is removed.

  1. Select the GeoTIFF as the input file, the mask layer to use (previously created), enable "Create an output alpha band" and "Keep resolution of input raster".

    6. QGIS generates a new GeoTIFF file, which you now use to create another mapbox layer.

Sample: https://racemap.com/player/external-layer-mask/

We needed to run "Fix Geometries" in QGIS before extraction processed successfully.

Last updated