instead of needing it to be passed through query params.
What I am changing
Add a color_formula_dependency field to BaseTilerFactory & MosaicTilerFactory (defaulting to the existing ColorFormulaParams) so users can override the logic for supplying a color formula. This lets us define a default color formula 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 color_formula 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 color_formula_dependency in an existing application.
instead of needing it to be passed through query params.
What I am changing
color_formula_dependency
field toBaseTilerFactory
&MosaicTilerFactory
(defaulting to the existingColorFormulaParams
) so users can override the logic for supplying a color formula. This lets us define a default color formula from a separate config without needing to include it in the query params for every request.How I did it
color_formula
value, rather than using aQuery
directly that can't be overridden.How you can test it
color_formula_dependency
in an existing application.