Skip to content

Commit

Permalink
Added missing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kappu committed Aug 8, 2017
1 parent 901ce14 commit e8fcc30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/client/components/map/leaflet/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,8 @@ class LeafletMap extends React.Component {
return [pixel.x, pixel.y];
});
mapUtils.registerHook(mapUtils.GET_COORDINATES_FROM_PIXEL_HOOK, (pixel) => {
let pos = CoordinatesUtils.reproject(this.map.containerPointToLatLng(pixel), 'EPSG:4326', this.props.projection);
const point = this.map.containerPointToLatLng(pixel);
let pos = CoordinatesUtils.reproject([point.lng, point.lat], 'EPSG:4326', this.props.projection);
return [pos.x, pos.y];
});
};
Expand Down

0 comments on commit e8fcc30

Please sign in to comment.