Skip to content

Commit

Permalink
Merge pull request #377 from Terralego/add_baselayer_id
Browse files Browse the repository at this point in the history
Select base map layer with ID in url
  • Loading branch information
submarcos authored Oct 4, 2023
2 parents e557a8e + ccd8761 commit aec2e1f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
14 changes: 11 additions & 3 deletions docs/source/others/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:**
Expand All @@ -11,15 +19,15 @@ Changelog
- Disable errors in console when style image already loaded


2023.9.0 (2023.9.28)
2023.9.0 (2023-09-28)
---------------------------

**Bugfix**

- Increase max body size for upload files


2023.8.4 (2023.8.4)
2023.8.4 (2023-08-04)
---------------------------

**New features:**
Expand Down
2 changes: 1 addition & 1 deletion project/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2023.10.0
2023.10.1
3 changes: 2 additions & 1 deletion project/terra_layer/views/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit aec2e1f

Please sign in to comment.