Skip to content

Commit

Permalink
fix: remove reference to layer render config to not interfere with ot…
Browse files Browse the repository at this point in the history
…hers
  • Loading branch information
jverrydt committed Aug 12, 2024
1 parent c15c908 commit 216e930
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion titiler/stacapi/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import datetime as python_datetime
import json
import os
from copy import copy
from dataclasses import dataclass, field
from enum import Enum
from typing import Any, Callable, Dict, List, Literal, Optional, Type
Expand Down Expand Up @@ -802,7 +803,7 @@ def get_tile( # noqa: C901
"datetime"
] = f"{start_datetime.strftime('%Y-%m-%dT%H:%M:%SZ')}/{end_datetime.strftime('%Y-%m-%dT%H:%M:%SZ')}"

query_params = layer.get("render") or {}
query_params = copy(layer.get("render")) or {}
if "color_formula" in req:
query_params["color_formula"] = req["color_formula"]
if "expression" in req:
Expand Down

0 comments on commit 216e930

Please sign in to comment.