Open AlexeyHabarov opened 2 years ago
Thanks for opening your first issue here! Please follow the issue template to help us help you 👍🎉😄 If you have screenshots to share demonstrating the issue, that's really helpful! 📸 You can make a gif too!
I had the same problem. As far as I understand the _corners are filled when the image is added to the page. Based on this, I decided to do the following and then I can get _corners:
L.DomEvent.on(img.getElement(), 'load', () => { console.log(img._corners); // _corners: (4) [LatLng, LatLng, LatLng, LatLng] })
Hello. Please explain this behavior. What mistakes do I make.
Scope:
Description: How can i get/set corners by click button. When i use img.setCorners i get an error.