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

enable to pass simple array form to the method setBounds #5687

Merged
merged 1 commit into from
Aug 5, 2017
Merged

enable to pass simple array form to the method setBounds #5687

merged 1 commit into from
Aug 5, 2017

Conversation

ronikar
Copy link
Contributor

@ronikar ronikar commented Aug 5, 2017

I am not really sure if it's bug or not. In your docs to create imageOverlay I can to pass bounds as simple array. However the function setBounds work only when it gets L.LatLngBounds, It's not work with simple array. so, I change the logic of this function in order to enable to pass simple array to this function.

Copy link
Member

@perliedman perliedman left a comment

Choose a reason for hiding this comment

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

Nice catch! This is indeed an oversight in the implementation. Thanks for fixing this.

@perliedman perliedman merged commit ce107a9 into Leaflet:master Aug 5, 2017
@ronikar ronikar deleted the fix-ImageOverlay-setBounds branch August 22, 2017 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants