Skip to content

Commit 216e930

Browse files
committed
fix: remove reference to layer render config to not interfere with others
1 parent c15c908 commit 216e930

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

titiler/stacapi/factory.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import datetime as python_datetime
44
import json
55
import os
6+
from copy import copy
67
from dataclasses import dataclass, field
78
from enum import Enum
89
from typing import Any, Callable, Dict, List, Literal, Optional, Type
@@ -802,7 +803,7 @@ def get_tile( # noqa: C901
802803
"datetime"
803804
] = f"{start_datetime.strftime('%Y-%m-%dT%H:%M:%SZ')}/{end_datetime.strftime('%Y-%m-%dT%H:%M:%SZ')}"
804805

805-
query_params = layer.get("render") or {}
806+
query_params = copy(layer.get("render")) or {}
806807
if "color_formula" in req:
807808
query_params["color_formula"] = req["color_formula"]
808809
if "expression" in req:

0 commit comments

Comments
 (0)