We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In Leaflet map whenReady event provides map component to whenReady callback as below:
whenReady(callback, context) { if (this._loaded) { callback.call(context || this, {target: this}); } else { this.on('load', callback, context); } return this; }
But MapContainer has whenReady function with no arguments
whenReady?: () => void
Is it possible to add those missing argument to whenReady callback?
The text was updated successfully, but these errors were encountered:
Ran into the same problem.
Sorry, something went wrong.
Ideally type definition for whenReady should inherit from @types/leaflet.
whenReady
@types/leaflet
Unfortunately it's not typed properly there: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/ab24eb77b6ca96a9aa41066add50b132199aab71/types/leaflet/index.d.ts#L2929
whenReady(fn: () => void, context?: any): this;
No branches or pull requests
In Leaflet map whenReady event provides map component to whenReady callback as below:
But MapContainer has whenReady function with no arguments
Is it possible to add those missing argument to whenReady callback?
The text was updated successfully, but these errors were encountered: