Skip to content

Commit

Permalink
Numeric not string
Browse files Browse the repository at this point in the history
  • Loading branch information
rmichaelis committed Jan 16, 2023
1 parent 5d083c7 commit 28130af
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,9 @@ const exports = function(

if (x !== undefined && y !== undefined) {
var coordinate = version === 3 ?
/** @type {ol.Coordinate} */ (transform([x, y], srs,
/** @type {ol.Coordinate} */ (transform([parseFloat(x), parseFloat(y)], srs,
this['map'].getView().getProjection())) :
/** @type {ol.Coordinate} */ (transform([y, x], srs,
/** @type {ol.Coordinate} */ (transform([parseFloat(y), parseFloat(x)], srs,
this['map'].getView().getProjection()));
this.setClickCordinate_(coordinate);
this.loadInfoPane_();
Expand Down

0 comments on commit 28130af

Please sign in to comment.