mirror of
https://github.com/Leaflet/Leaflet.git
synced 2025-08-16 16:45:22 +00:00
Use preferred tile.openstreetmap.org URL (#8418)
Now that tile.openstreetmap.org supports HTTP/2 + HTTP/3 the old (a|b|c).tile.openstreetmap.org is no longer recommended. Use tile.openstreetmap.org directly is faster and will likely result in a better cache hit ratio. Signed-off-by: Grant Slater <git@firefishy.com> Signed-off-by: Grant Slater <git@firefishy.com>
This commit is contained in:
@ -15,7 +15,7 @@
|
||||
|
||||
<script>
|
||||
|
||||
var osmUrl = 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
|
||||
var osmUrl = 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
|
||||
osmAttrib = '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
|
||||
osm = L.tileLayer(osmUrl, {maxZoom: 18, attribution: osmAttrib}),
|
||||
osm2 = new L.TileLayer(osmUrl, {attribution: 'Hello world'});
|
||||
|
Reference in New Issue
Block a user