stac-extensions / web-map-links

Allows to provide links to web maps for visualization purposes
Apache License 2.0
18 stars 2 forks source link

xyz:servers vs. xyz:subdomains #1

Closed DanielJDufour closed 1 year ago

DanielJDufour commented 2 years ago

Hi. I'm wondering if xyz:servers might be a little more intuitive to people who use LeafletJS if it was called xyz:subdomains. I'm not sure about the nomenclature for other libraries.

https://leafletjs.com/reference.html#tilelayer

m-mohr commented 2 years ago

That's the intention behind it. Thoughts, @DanielJDufour ?

DanielJDufour commented 2 years ago

Ah okay. That makes a lot more sense. Hmmm... it's sorta tricky because it seems Mapbox and LeafletJS usage of {s} is in conflict. I'm not sure what to think, but I'll give it some thought.

m-mohr commented 1 year ago

What we'll do with {s} is that it's just expanded into multiple URLs.

If you have https://{s}/example and xyz:servers is ["a.com", "b.eu"] you'll expand that to ["https://a.com/example", "https://b.eu/example"]