Skip to content

Commit

Permalink
Merge branch 'fix-osm-tile-link'
Browse files Browse the repository at this point in the history
  • Loading branch information
Gagaro committed Jun 10, 2024
2 parents 6a7edb8 + 7d503d1 commit 6d6eed7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CHANGELOG
0.30.1 (unreleased)
-------------------

-
- Change OSM tile link to unified format #375

0.30.0 (2024-05-13)
-------------------
Expand Down
2 changes: 1 addition & 1 deletion docs/templates.rst
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ Default tiles layer

To globally add a tiles layer to your maps::

'TILES': 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'
'TILES': 'http://tile.openstreetmap.org/{z}/{x}/{y}.png'

This setting can also be a list of tuples ``(name, url, options)``.
The python dict ``options`` accepts all the Leaflet tileLayers options.
Expand Down
2 changes: 1 addition & 1 deletion leaflet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from django.utils.translation import gettext_lazy as _
from django.utils.functional import lazy, Promise

DEFAULT_TILES = [(_('OSM'), '//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
DEFAULT_TILES = [(_('OSM'), '//tile.openstreetmap.org/{z}/{x}/{y}.png',
'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors')]

LEAFLET_CONFIG = getattr(settings, 'LEAFLET_CONFIG', {})
Expand Down
2 changes: 1 addition & 1 deletion leaflet/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class TemplateTagTest(SimpleTestCase):
def test_default_layer_in_leaflet_map(self):
context = leaflet_tags.leaflet_map('map')
self.assertEqual('map', context['name'])
self.assertTrue('"OSM", "//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"' in
self.assertTrue('"OSM", "//tile.openstreetmap.org/{z}/{x}/{y}.png"' in
context['djoptions'])


Expand Down

0 comments on commit 6d6eed7

Please sign in to comment.