Skip to content

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

Merged
perliedman merged 1 commit intoLeaflet:masterfrom
ronikar:fix-ImageOverlay-setBounds
Aug 5, 2017
Merged

enable to pass simple array form to the method setBounds#5687
perliedman merged 1 commit intoLeaflet:masterfrom
ronikar:fix-ImageOverlay-setBounds

Conversation

@ronikar
Copy link
Copy Markdown
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
Copy Markdown
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