Skip to content

Commit

Permalink
🐛 (working on #43): fixed a bug in getFeatureInfoRequest (offset cvcalc)
Browse files Browse the repository at this point in the history
  • Loading branch information
helllth committed Feb 11, 2021
1 parent c7f4cfe commit d0b691d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/containers/Starkregen.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,16 +377,10 @@ export class Starkregen_ extends React.Component {
// this.props.starkregen.currentFeatureInfoPosition[1]
// );

let size;
if (this.props.starkregen.displayMode === starkregenConstants.SHOW_HEIGHTS) {
size = 0.5;
x = Math.round(this.props.starkregen.currentFeatureInfoPosition[0]) - 0.125;
y = Math.round(this.props.starkregen.currentFeatureInfoPosition[1]) - 0.02;
} else {
size = 0.5;
const size = 0.5;
x = Math.round(this.props.starkregen.currentFeatureInfoPosition[0] - 0.37) + 0.37;
y = Math.round(this.props.starkregen.currentFeatureInfoPosition[1] - 0.5) + 0.5;
}


const geoJsonObject = {
id: 0,
Expand Down

0 comments on commit d0b691d

Please sign in to comment.