You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using a Titiler server for rendering the COG image in the map. To have a better visual of the tiled image, we need to provide the rescale value of the COG image to the Titiler server. We are currently querying the percent_2 and percent_98 of the band statistics using the /cog/statistics of Titiler. Querying the statistics of the COG image requires the buildTileUrlTemplate to be asynchronous. This causes an error because stac-layer is not expecting an async buildTileUrlTemplate function. Below is the snippet of the error.
Is it possible for the buildTileUrlTemplate to expect an async function?
error:
[stac-layer] caught the following error while trying to add a tile layer: TypeError: str.replace is not a function
The text was updated successfully, but these errors were encountered:
m-mohr
changed the title
Is it possible for buildTileUrlTemplate in config.js to be an async function
buildTileUrlTemplate in config.js as an async function
Oct 4, 2023
We are using a Titiler server for rendering the COG image in the map. To have a better visual of the tiled image, we need to provide the
rescale
value of the COG image to the Titiler server. We are currently querying thepercent_2
andpercent_98
of the band statistics using the/cog/statistics
of Titiler. Querying the statistics of the COG image requires thebuildTileUrlTemplate
to be asynchronous. This causes an error becausestac-layer
is not expecting an asyncbuildTileUrlTemplate
function. Below is the snippet of the error.Is it possible for the
buildTileUrlTemplate
to expect an async function?error:
The text was updated successfully, but these errors were encountered: