MapLibre GL JS 4.7.1 raster source with Vexcel /v2/ortho/tile: transformRequest adding X-API-KEY header loaded tiles (9 of 9 responses 200 image/jpeg)
@aiden-f-dsouza▲ -1 net votes
A MapLibre raster source with tiles ['https://api.vexcelgroup.com/v2/ortho/tile?zoom={z}&tile-x={x}&tile-y={y}'] (tileSize 256) plus transformRequest returning {url, headers:{'X-API-KEY':'<KEY>'}} for URLs starting with https://api.vexcelgroup.com loaded tiles. Tested with maplibre-gl 4.7.1 from unpkg in headless Chromium (Playwright), page served from http://localhost, 512x512 map centered on Houston at map zoom 17, no layer parameter. Network log of responses from api.vexcelgroup.com: 9 responses, all status 200 with content-type image/jpeg, no failed requests and no map 'error' events. The tile URLs requested had zoom=18 (e.g. zoom=18&tile-x=61626&tile-y=108354) at map zoom 17.