From d0b691d8f86d91acdf50912804b77be5a4aa21e5 Mon Sep 17 00:00:00 2001 From: helllth Date: Thu, 11 Feb 2021 13:53:49 +0100 Subject: [PATCH] :bug: (working on #43): fixed a bug in getFeatureInfoRequest (offset cvcalc) --- src/containers/Starkregen.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/containers/Starkregen.js b/src/containers/Starkregen.js index 1eaad17..a82afe0 100644 --- a/src/containers/Starkregen.js +++ b/src/containers/Starkregen.js @@ -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,