-
Notifications
You must be signed in to change notification settings - Fork 5
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
Updated to the latest version of leaflet-providers-parsed.json #23
Updated to the latest version of leaflet-providers-parsed.json #23
Conversation
Thanks! It looks like Stamen has to be removed from the tests: TileProviders.jl/test/runtests.jl Line 22 in eecc02f
Since your link is for the main branch and will therefore change soon, here is also a permalink (press y) for the current commit, in case we want to compare later on: https://github.com/geopandas/xyzservices/blob/e8198dac0c10435c617dff3720aea3ec43561de4/provider_sources/leaflet-providers-parsed.json |
@visr No problem. I am still somewhat green on all of this, so I apologize. I just added a commit to remove Stamen from the runtests.jl file. |
You will need to add a dummy MapTiler(; apikey="some_apikey") TileProviders.jl/test/runtests.jl Line 21 in eecc02f
It looks like they are forcing users to get an api key now |
Thank you @rafaqz. I see I need to update the test suite for the new MapTiler requirement. Working on that. |
Oh right its https://github.com/JuliaGeo/TileProviders.jl/blob/main/src/provider.jl#L101 We should really make that smarter somehow. |
Thanks @rafaqz. I added it there and have the MapTiler ones working, but the NLS ones are failing, even though
Here's the NLS URL definition:
New to Julia, so I apologize for these errors. |
No worries at all this code generation from json is kind of extreme magical julia for experienced people as well, including me one year later... But Seems like everyone is locking down their API to logged in users only |
Thanks @rafaqz. I tried adding this code (I think it is the right one) locally, but the test still fails. I just pushed a commit with this so you can see the issue directly in the testing.
What's confusing me is that |
Uggh this may be a bug in the JSON as they don't list We may need to special-case |
Thanks @rafaqz. Let me check the latest version. Perhaps this was addressed upstream. 🤦 I see what you are talking about now. Sorry for being so dense. I don't have my debugging chops in Julia...yet. Ha! Since it isn't defined int he JSON definition, the test complains that it isn't defined. I can comment out the NLS test on my end and recommit after I check upstream. I think that should be addressed there ideally. |
Great. There is an open PR for this exact change upstream at the Leaflet Providers source: leaflet-extras/leaflet-providers#547 Found it via the xyzservices issue: geopandas/xyzservices#157 I'll nudge on that thread, too @rafaqz. |
It was just a github problem. Thanks for pushing this through |
No problem @rafaqz. Happy to help. Thanks for your guidance. |
Hey, found a link over in xyzservices to this. If you're consuming our JSON, it may be worth pinging this upstream issue leaflet-extras/leaflet-providers#457. For you as well as for xyzservices, it would be much easier if the upstream source of tiles was a ready-to-consume JSON. |
Good point, and thanks for maintaining the json we use! When writing this package its seemed like the only easily parsed option. |
Hello. This PR includes the current leaflet-providers-parsed.json file from the xyzservices repository.
The present one is quite stale and doesn't cover the migration of Stamen's tiles to Stadia Maps among other changes.
This also addresses #22