mirror of
https://github.com/umap-project/umap.git
synced 2025-04-30 20:12:37 +02:00
Merge pull request #2063 from Dimitar5555/patch-1
Use preferred tile.openstreetmap.org URL
This commit is contained in:
commit
4e770f3ed9
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ def tilelayers():
|
|||
TileLayerFactory(
|
||||
rank=1,
|
||||
name="OpenStreetMap",
|
||||
url_template="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
|
||||
url_template="https://tile.openstreetmap.org/{z}/{x}/{y}.png",
|
||||
)
|
||||
TileLayerFactory(
|
||||
rank=2,
|
||||
|
@ -76,7 +76,7 @@ def test_map_should_display_first_tilelayer_by_default(
|
|||
page.goto(f"{live_server.url}/map/new")
|
||||
tiles = page.locator(".leaflet-tile-pane img")
|
||||
expect(tiles.first).to_have_attribute(
|
||||
"src", re.compile(r"https://[abc].tile.openstreetmap.org/\d+/\d+/\d+.png")
|
||||
"src", re.compile(r"https://tile.openstreetmap.org/\d+/\d+/\d+.png")
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue