backdrop-contrib / leaflet

Backdrop CMS Integration with the Leaflet map scripting library.
https://backdropcms.org/project/leaflet
GNU General Public License v2.0
2 stars 2 forks source link

Evaluate to switch urlTemplate to tile.openstreetmap.org #32

Closed indigoxela closed 1 year ago

indigoxela commented 1 year ago

We currently use {s}.tile.openstreetmap.org/{z}/{x}/{y}.png, but I just saw this PR:

https://github.com/Leaflet/Leaflet/pull/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.

Very interesting, need to evaluate. See also: https://github.com/openstreetmap/operations/issues/737

Affected files:

indigoxela commented 1 year ago

It works, it uses http3, it's faster. :+1: