From 4fdcba27b96b0043e6a6761029cfa8fa45d8567d Mon Sep 17 00:00:00 2001 From: "RobLabs.com" Date: Thu, 31 Oct 2024 10:08:51 -0700 Subject: [PATCH] Use `.png` as the XYZ format hint for raster & raster-dem tiles --- src/components/ModalSources.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ModalSources.tsx b/src/components/ModalSources.tsx index 60a6f850..eabb5a8b 100644 --- a/src/components/ModalSources.tsx +++ b/src/components/ModalSources.tsx @@ -155,7 +155,7 @@ class AddSource extends React.Component { } case 'tile_raster': return { type: 'raster', - tiles: (source as RasterSourceSpecification).tiles || [`${protocol}//localhost:3000/{x}/{y}/{z}.pbf`], + tiles: (source as RasterSourceSpecification).tiles || [`${protocol}//localhost:3000/{x}/{y}/{z}.png`], minzoom: (source as RasterSourceSpecification).minzoom || 0, maxzoom: (source as RasterSourceSpecification).maxzoom || 14, scheme: (source as RasterSourceSpecification).scheme || 'xyz', @@ -167,7 +167,7 @@ class AddSource extends React.Component { } case 'tilexyz_raster-dem': return { type: 'raster-dem', - tiles: (source as RasterDEMSourceSpecification).tiles || [`${protocol}//localhost:3000/{x}/{y}/{z}.pbf`], + tiles: (source as RasterDEMSourceSpecification).tiles || [`${protocol}//localhost:3000/{x}/{y}/{z}.png`], minzoom: (source as RasterDEMSourceSpecification).minzoom || 0, maxzoom: (source as RasterDEMSourceSpecification).maxzoom || 14, tileSize: (source as RasterDEMSourceSpecification).tileSize || 512