Skip to content

Commit

Permalink
Fix wmts tile url
Browse files Browse the repository at this point in the history
  • Loading branch information
hanbyul-here committed Aug 17, 2023
1 parent cb0be84 commit 252f494
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,9 @@ export function MapLayerRasterTimeseries(props: MapLayerRasterTimeseriesProps) {
// Ignore errors.
}

const wmtsBaseUrl = mosaicUrl.replace('tilejson.json', 'WMTSCapabilities.xml');
console.log(wmtsBaseUrl)

Check failure on line 377 in app/scripts/components/common/mapbox/layers/raster-timeseries.tsx

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement

Check failure on line 377 in app/scripts/components/common/mapbox/layers/raster-timeseries.tsx

View workflow job for this annotation

GitHub Actions / lint

Missing semicolon

const mosaicSource: RasterSource = {
type: 'raster',
url: tilejsonUrl
Expand All @@ -396,7 +399,7 @@ export function MapLayerRasterTimeseries(props: MapLayerRasterTimeseriesProps) {
id,
layerOrderPosition: 'raster',
xyzTileUrl: tileServerUrl,
wmtsTileUrl: `${mosaicUrl}/WMTSCapabilities.xml?${tileParams}`
wmtsTileUrl: `${wmtsBaseUrl}?${tileParams}`
}
};

Expand Down

0 comments on commit 252f494

Please sign in to comment.