Skip to content

Commit

Permalink
Merge pull request #10 from UNDP-Data/fix/attribution-param
Browse files Browse the repository at this point in the history
Fix/attribution param
  • Loading branch information
JinIgarashi authored Oct 6, 2022
2 parents 2240b4f + e9bf42d commit 03c90b6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion titiler/app/wmts.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,10 @@ def create_mosaicJSON(
attribution :Optional[str] = None

):
return MosaicJSON.from_urls(urls=url, minzoom=minzoom, maxzoom=maxzoom, attribution=attribution)
mosaicjson = MosaicJSON.from_urls(urls=url, minzoom=minzoom, maxzoom=maxzoom, )
if attribution is not None:
mosaicjson.attribution = attribution
return mosaicjson


@ccog.router.get(
Expand Down
6 changes: 6 additions & 0 deletions titiler/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@ services:
titiler-uvicorn:
# See https://github.com/developmentseed/titiler/discussions/387
#platform: linux/amd64
# enable `image` if you would like to use Docker image from Github package
# image: ghcr.io/undp-data/titiler-aks:v0.0.2
# enable `build` if you would like to build Docker image from source code
build:
context: .
dockerfile: dockerfiles/Dockerfile.uvicorn
ports:
- "8000:8000"
# Enable the following volumes if you want to mount source code to Docker
# volumes:
# - "./app/wmts.py:/opt/wmts/wmts.py"
environment:
# Application
- HOST=0.0.0.0
Expand Down

0 comments on commit 03c90b6

Please sign in to comment.