diff --git a/localtileserver/client.py b/localtileserver/client.py index 4093d74..7a8fe88 100644 --- a/localtileserver/client.py +++ b/localtileserver/client.py @@ -417,7 +417,7 @@ def create_url(self, path: str, client: bool = False): def get_tile_url( self, indexes: Optional[List[int]] = None, - colormap: Optional[Union[str, Colormap]] = None, + colormap: Optional[Union[str, Colormap, List[str]]] = None, vmin: Optional[Union[float, List[float]]] = None, vmax: Optional[Union[float, List[float]]] = None, nodata: Optional[Union[int, float]] = None, diff --git a/localtileserver/widgets.py b/localtileserver/widgets.py index 1517ef2..23d7e77 100644 --- a/localtileserver/widgets.py +++ b/localtileserver/widgets.py @@ -24,7 +24,7 @@ def get_leaflet_tile_layer( port: Union[int, str] = "default", debug: bool = False, indexes: Optional[List[int]] = None, - colormap: Optional[Union[str, Colormap]] = None, + colormap: Optional[Union[str, Colormap, List[str]]] = None, vmin: Optional[Union[float, List[float]]] = None, vmax: Optional[Union[float, List[float]]] = None, nodata: Optional[Union[int, float]] = None,