+ 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

11th Mar 2020, 6:19 PM
Albert Margaryan
Albert Margaryan - avatar
2 Respostas
+ 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;).
11th Mar 2020, 9:53 PM
yochanan sheinberger
yochanan sheinberger - avatar
0
Thanks a lot
12th Mar 2020, 4:13 AM
Albert Margaryan
Albert Margaryan - avatar