From 145bf632a2fa0f187384798f75a9b69fad5f6d6e Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Fri, 24 May 2019 12:33:42 -0400 Subject: [PATCH 1/2] make map URL configurable (thanks @alexandreleroux) --- aws-lambda/pygeoapi-serverless-config.yml | 3 +++ docker/default.config.yml | 3 +++ docker/examples/elastic/pygeoapi/docker.config.yml | 3 +++ docker/examples/simple/my.config.yml | 3 +++ pygeoapi-config.yml | 3 +++ pygeoapi/templates/item.html | 2 +- pygeoapi/templates/items.html | 5 +++-- tests/pygeoapi-test-config.yml | 3 +++ tests/pygeoapi-test-ogr-config.yml | 3 +++ 9 files changed, 25 insertions(+), 3 deletions(-) diff --git a/aws-lambda/pygeoapi-serverless-config.yml b/aws-lambda/pygeoapi-serverless-config.yml index 86fe27a..3fff06c 100644 --- a/aws-lambda/pygeoapi-serverless-config.yml +++ b/aws-lambda/pygeoapi-serverless-config.yml @@ -10,6 +10,9 @@ server: pretty_print: true limit: 10 # templates: /path/to/templates + map: + url: https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}.png + attribution: 'Wikimedia maps | Map data © OpenStreetMap contributors' logging: level: ERROR diff --git a/docker/default.config.yml b/docker/default.config.yml index 6cfd21a..901003e 100644 --- a/docker/default.config.yml +++ b/docker/default.config.yml @@ -12,6 +12,9 @@ server: pretty_print: true limit: 10 # templates: /path/to/templates + map: + url: https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}.png + attribution: 'Wikimedia maps | Map data © OpenStreetMap contributors' logging: level: ERROR diff --git a/docker/examples/elastic/pygeoapi/docker.config.yml b/docker/examples/elastic/pygeoapi/docker.config.yml index dd5deb1..e2b1557 100644 --- a/docker/examples/elastic/pygeoapi/docker.config.yml +++ b/docker/examples/elastic/pygeoapi/docker.config.yml @@ -10,6 +10,9 @@ server: pretty_print: true limit: 10 # templates: /path/to/templates + map: + url: https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}.png + attribution: 'Wikimedia maps | Map data © OpenStreetMap contributors' logging: level: ERROR diff --git a/docker/examples/simple/my.config.yml b/docker/examples/simple/my.config.yml index 23811fb..79a0134 100644 --- a/docker/examples/simple/my.config.yml +++ b/docker/examples/simple/my.config.yml @@ -10,6 +10,9 @@ server: pretty_print: true limit: 10 # templates: /path/to/templates + map: + url: https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}.png + attribution: 'Wikimedia maps | Map data © OpenStreetMap contributors' logging: level: ERROR diff --git a/pygeoapi-config.yml b/pygeoapi-config.yml index 3cf6770..c1f9e22 100644 --- a/pygeoapi-config.yml +++ b/pygeoapi-config.yml @@ -10,6 +10,9 @@ server: pretty_print: true limit: 10 # templates: /path/to/templates + map: + url: https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}.png + attribution: 'Wikimedia maps | Map data © OpenStreetMap contributors' logging: level: ERROR diff --git a/pygeoapi/templates/item.html b/pygeoapi/templates/item.html index ebeae9d..5e9fd5c 100644 --- a/pygeoapi/templates/item.html +++ b/pygeoapi/templates/item.html @@ -79,7 +79,7 @@