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

fix: use Client instead of BaseClient in network tile/image provider #2011

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

slightfoot
Copy link
Contributor

@slightfoot slightfoot commented Jan 14, 2025

Fixes #2010

Issue

NetworkTileProvider and MapNetworkImageProvider cannot be used with implementations of the http Client library.

Resolution

Switch out incorrect BaseClient usage with Client.

References

Notes

This fix uses the interface class and not the mixin implementation class that is used at the moment.

This change is backwards compatible and will not affect current usage of these classes as BaseClient implements Client interface.

@JaffaKetchup I am working on a project that would need this change. I'd be most greatful if we can get this out in a release. Thanks!

Copy link
Contributor

@TesteurManiak TesteurManiak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

@JaffaKetchup JaffaKetchup changed the title feat: correct class used for http Client (#2010) fix: use Client instead of BaseClient in network tile/image provider (#2010) Jan 14, 2025
@JaffaKetchup JaffaKetchup changed the title fix: use Client instead of BaseClient in network tile/image provider (#2010) fix: use Client instead of BaseClient in network tile/image provider Jan 14, 2025
@JaffaKetchup JaffaKetchup merged commit 3e67dee into fleaflet:master Jan 14, 2025
7 checks passed
@JaffaKetchup
Copy link
Member

JaffaKetchup commented Jan 14, 2025

Hi @slightfoot, we plan to release the next major version soon :) Thanks for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[BUG] Incorrect http class used BaseClient is mixin, should be interface Client
3 participants