Repository navigation
Add quadkey to url templates - #2805
Conversation
|
This is great! Thank you for the contribution @mike-marcacci. Two things we should do before 🚢:
|
|
Ah yes, As far as the |
Ah! My mistake! In that case, let's look at the z=1 case. My intent here is to exercise valid edge cases of
I'd prefer to not complicate our system with Bing API keys out of a fear of TOS violations. If there's no free quadkey server, we can skip this step. |
|
Ugh I was going to help by pointing you to the quadkey tests in iD, but we don't have any! 😢 This project looks ok too and has good test coverage (maybe just use it?):
☝️ Agree... I think we can skip the debug page - a user would need a Bing key to make it work, and afaik there are no other providers that use it. |
|
That makes sense about the debug page; I could possibly get a key from a URL param if that sounds simpler... I saw that NPM package, which looks really great, but felt like a bit overkill for the one function. Also, I was a bit confused by its use of Also for reference: |
|
I'm going to merge this as-is and then add some additional test cases in a follow-up PR. Thanks @mike-marcacci and @bhousel 🙇 |
|
Extra test cases in 0877cac 🎉 |
|
Hi @lucaswoj - thanks so much for merging this! (Was off the grid this weekend for a change, so just catching up now.) And great call on the other tests! |
|
mapbox/mapbox-gl-native#5628 ports these changes to the other Mapbox GL libraries. |
This adds the ability to fetch tiles from servers (like Bing) that use the quadkey format. Simply replaces
{quadkey}in a URL template with the appropriate value. Test included.