Skip to content

Commit

Permalink
changing from getElementById to querySelector
Browse files Browse the repository at this point in the history
  • Loading branch information
iulianPreuteasa authored and cesswairimu committed Mar 11, 2023
1 parent de04138 commit f41abae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion debug/pixelorigin.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const map;
const imagePixelCoords = map.project(trd, map.getZoom());
const imageOffset = img._image._leaflet_pos;

document.getElementById('info').innerHTML =
document.querySelector('#info').innerHTML =
'<div style="color: green">CRS origin: 0,0</div>' +
'<div style="color: red">px origin: &Delta;' + pixelOrigin.x + ',' + pixelOrigin.y + '</div>' +
'<div style="color: blue">image px coords:' + imagePixelCoords.x.toFixed(2) + ',' + imagePixelCoords.y.toFixed(2) + '</div>' +
Expand Down

0 comments on commit f41abae

Please sign in to comment.