+2

Who can help me with the bug

In my code there is a bug which sometimes set coordinates out of the img pls help https://code.sololearn.com/WGw8Oby3a7TX/?ref=app

3/11/2020 6:19:07 PM

Albert Margaryan

2 Answers

New Answer

+2

Your bug is because you set the size of the img twice, and in different sizes. You have to change the size in css - #map (width: 450px; height: 320px;), or the size in JS vars (width: 900; height: 640;).

0

Thanks a lot