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:
@ -14,7 +14,7 @@ import * as DomUtil from '../../dom/DomUtil';
|
||||
* @example
|
||||
*
|
||||
* ```js
|
||||
* L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png?{foo}', {foo: 'bar', attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'}).addTo(map);
|
||||
* L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png?{foo}', {foo: 'bar', attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'}).addTo(map);
|
||||
* ```
|
||||
*
|
||||
* @section URL template
|
||||
|
Reference in New Issue
Block a user