Skip to content

Commit

Permalink
Merge pull request #114 from rl-institut/fix/remove_mapbox_tiles
Browse files Browse the repository at this point in the history
Fix/remove mapbox tiles
  • Loading branch information
nesnoj authored Oct 31, 2020
2 parents 57448bc + a14c13e commit be83efc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.3'
__version__ = '1.0.4'
10 changes: 2 additions & 8 deletions config/leaflet.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
# Related issue: https://github.com/rl-institut/WAM/issues/74

LEAFLET_CONFIG = {
'TILES': [('Streets', 'https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.eyJ1Ijoid2FtLXJsaSIsImEiOiJjanlpbTdsdXgwMHljM2JueGNrODZtbjB5In0.A7X6_rpw7hRehkulqMjpXw',
{'attribution': 'Tiles: &copy; <a href="https://www.mapbox.com/about/maps/" target="_blank" rel="noopener noreferrer">mapbox</a>, Data: &copy; <a href="http://openstreetmap.org" target="_blank" rel="noopener noreferrer">OpenStreetMap</a> contributors (<a href="https://www.mapbox.com/map-feedback/#/-74.5/40/10" target="_blank" rel="noopener noreferrer">improve this map</a>), <a href="http://creativecommons.org/licenses/by-sa/2.0/" target="_blank" rel="noopener noreferrer">CC-BY-SA</a>',
'id': 'mapbox.streets',
'TILES': [('OSM', 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
{'attribution': '&copy; <a href="http://openstreetmap.org" target="_blank" rel="noopener noreferrer">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/" target="_blank" rel="noopener noreferrer">CC-BY-SA</a>',
'minZoom': 9,
'maxZoom': 12,
}
Expand All @@ -18,11 +17,6 @@
'maxZoom': 12,
}
),
('OSM', 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
{'attribution': '&copy; <a href="http://openstreetmap.org" target="_blank" rel="noopener noreferrer">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/" target="_blank" rel="noopener noreferrer">CC-BY-SA</a>',
'minZoom': 9,
'maxZoom': 12,
}),
('OpenTopoMap', 'http://{s}.tile.opentopomap.org/{z}/{x}/{y}.png',
{'attribution': 'Tiles: &copy <a href="http://opentopomap.org" target="_blank" rel="noopener noreferrer">OpenTopoMap</a>, Data: &copy; <a href="http://openstreetmap.org" target="_blank" rel="noopener noreferrer">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/" target="_blank" rel="noopener noreferrer">CC-BY-SA</a>',
'minZoom': 9,
Expand Down
1 change: 1 addition & 0 deletions doc/whats_new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Eine Liste neuer Funktionen, Verbesserungen und Bugfixes für jedes Release.
:backlinks: top

.. include:: whatsnew/unreleased.rst
.. include:: whatsnew/v1.0.4.rst
.. include:: whatsnew/v1.0.3.rst
.. include:: whatsnew/v1.0.2.rst
.. include:: whatsnew/v1.0.1.rst
Expand Down
7 changes: 7 additions & 0 deletions doc/whatsnew/v1.0.4.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
v1.0.4 (30. Oktober 2020)
.........................

Änderungen
~~~~~~~~~~

- Mapbox Tiles entfernt, new default: OSM

0 comments on commit be83efc

Please sign in to comment.