From 89ae1006cbe5d51910c57bcfbcb0e3d15437e79e Mon Sep 17 00:00:00 2001 From: J-E Castagnede Date: Wed, 4 Oct 2023 14:17:40 +0200 Subject: [PATCH 1/2] add base layer id in api response --- docs/source/others/changelog.rst | 14 +++++++++++--- project/terra_layer/views/layers.py | 3 ++- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/docs/source/others/changelog.rst b/docs/source/others/changelog.rst index 96fe7eb9..c96a7798 100644 --- a/docs/source/others/changelog.rst +++ b/docs/source/others/changelog.rst @@ -2,7 +2,15 @@ Changelog ========== -2023.10.0 (2023.10.02) +2023.10.1 (2023-10-01) +--------------------------- + +**Improvements:** + +- Ability to go on direct view with base layer defined by ID + + +2023.10.0 (2023-1-02) --------------------------- **Improvements:** @@ -11,7 +19,7 @@ Changelog - Disable errors in console when style image already loaded -2023.9.0 (2023.9.28) +2023.9.0 (2023-09-28) --------------------------- **Bugfix** @@ -19,7 +27,7 @@ Changelog - Increase max body size for upload files -2023.8.4 (2023.8.4) +2023.8.4 (2023-08-04) --------------------------- **New features:** diff --git a/project/terra_layer/views/layers.py b/project/terra_layer/views/layers.py index 14fda695..d621e626 100644 --- a/project/terra_layer/views/layers.py +++ b/project/terra_layer/views/layers.py @@ -302,7 +302,8 @@ def get_layer_structure(self): baselayers = [ { "label": baselayer.name, - "url": self.request.build_absolute_uri(baselayer.url) + "url": self.request.build_absolute_uri(baselayer.url), + "id": baselayer.id if baselayer.base_layer_type != "mapbox" else baselayer.url, } From ccd876127c1a97615298762edecb5b9fbdbaf100 Mon Sep 17 00:00:00 2001 From: J-E Castagnede Date: Wed, 4 Oct 2023 14:23:23 +0200 Subject: [PATCH 2/2] add base layer id in api response --- project/VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/VERSION b/project/VERSION index 3bae6081..ea516b56 100644 --- a/project/VERSION +++ b/project/VERSION @@ -1 +1 @@ -2023.10.0 \ No newline at end of file +2023.10.1 \ No newline at end of file