Add a rescale_dependency field to BaseTilerFactory & MosaicTilerFactory (defaulting to the existing RescalingParams) so users can override the logic for supplying the rescale value. This lets us define a default rescale value from a separate config without needing to include it in the query params for every request.
How I did it
Added a dependency to get the rescale value, rather than using a Query directly that can't be overridden.
How you can test it
Via the integration tests, or by using the rescale_dependency in an existing application.
What I am changing
rescale_dependency
field toBaseTilerFactory
&MosaicTilerFactory
(defaulting to the existingRescalingParams
) so users can override the logic for supplying therescale
value. This lets us define a default rescale value from a separate config without needing to include it in the query params for every request.How I did it
rescale
value, rather than using aQuery
directly that can't be overridden.How you can test it
rescale_dependency
in an existing application.