Leaflet.DistortableImage icon indicating copy to clipboard operation
Leaflet.DistortableImage copied to clipboard

SVGs initially load at top left of the map

Open saadsaifse opened this issue 5 years ago • 2 comments

Describe the bug: I am loading a collection of images about 50 through L.distortableCollection and applying corners to individual images with something like L.distortableImageOverlay(imageUrl, {corners: anchors});

The problem is, all images load at the top left corner of the map and until I scroll on the map, they remain there. After applying the scroll, however the images goes to their intended location

Reproduce the behavior: Load multiple images on different corners

Browser, version, and operating system:

  • Tested on Chrome, Firefox -
  • Version: Chrome 77.0.3865.90, Firefox 69.0.1 (64-bit) -
  • Platform: macOS, haven't tried on Windows yet -

saadsaifse avatar Oct 02 '19 12:10 saadsaifse

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!

welcome[bot] avatar Oct 02 '19 12:10 welcome[bot]

@saadsaifse I just tested with an SVG, and works as expected for me. Is it possible you're setting your own CSS transform properties anywhere? Also if you check the bounds / corners of the image when its in the corner are they what you expected?

sashadev-sky avatar Dec 08 '19 05:12 sashadev-sky