Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable multiple sub-domains/domains template for ULRBuilder #942

Closed
SesticM opened this issue Dec 2, 2018 · 6 comments
Closed

Enable multiple sub-domains/domains template for ULRBuilder #942

SesticM opened this issue Dec 2, 2018 · 6 comments

Comments

@SesticM
Copy link

SesticM commented Dec 2, 2018

Currently it's possible to set following URL for e.g. OpenStreetMap layer source: https://a.tile.openstreetmap.org/${z}/${x}/${y}.png

It would be beneficial (in terms of speed and efficiency) if we could set alternating sub-domains/domains on URL based on specified rule, for example:
https://${u:a|b|c}.tile.openstreetmap.org/${z}/${x}/${y}.png

...or, for example:
https://${u:xyz.org|yzx.org|zxy.org}/${z}/${x}/${y}.png

@tbroyer
Copy link
Contributor

tbroyer commented Dec 2, 2018

With HTTP/2, you'd better use the same server to benefit from multiplexing over the same connection. Granted, for those few, older, browsers that don't support HTTP/2 (really not that much: https://caniuse.com/http2, tl;dr: IE11 on Win7, IE mobile, and UC Browser), "sharding" that way could be beneficial (particularly in this case as the setup of those OSM servers allows for HTTP/2 connection coalescing: names resolving to the same IP and covered by the same TLS certificate).

Are IE11 on Win7, IE mobile, and UC Browser the reason you ask for this feature? Or was there any other reason?

@SesticM
Copy link
Author

SesticM commented Dec 2, 2018

Yes, exactly - IE11 on Win7 was a major reason for this request. It's a common corporate "suite" and will be hanging around for a long time...

@zarov
Copy link
Contributor

zarov commented Dec 3, 2018

https://${u:a|b|c}.tile.openstreetmap.org/${z}/${x}/${y}.png

I'm not familiar with this format, what are the resulting urls ?

@zarov zarov added enhancement 🚀 feature 🍏 Adds a new feature labels Dec 3, 2018
@SesticM
Copy link
Author

SesticM commented Dec 5, 2018

It was just a staged example, no actual standards were taken into consideration (if any).

For example, resulting URLs based on following template:
https://${u:a|b|c}.tile.openstreetmap.org/${z}/${x}/${y}.png

...would produce following (continuously) alternating calls:
https://a.tile.openstreetmap.org/${z}/${x}/${y}.png
https://b.tile.openstreetmap.org/${z}/${x}/${y}.png
https://c.tile.openstreetmap.org/${z}/${x}/${y}.png

Or, for example, resulting URLs based on following template:
https://${u:xyz.org|yzx.org}/${z}/${x}/${y}.png

...would produce following (continuously) alternating calls:
https://xyz.org/${z}/${x}/${y}.png
https://yzx.org/${z}/${x}/${y}.png

@zarov
Copy link
Contributor

zarov commented Dec 5, 2018

Thanks, that seems simple to implement ! I added the tag good first issue if someone wants to implement it, otherwise I'll do it when I got time.

@zarov
Copy link
Contributor

zarov commented Jul 29, 2019

Implemented in #1189

@zarov zarov closed this as completed Jul 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants