Skip to content

MapContainer whenReady doesn't receive target parameter from Leaflet #1120

@BggClr

Description

@BggClr

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions