Skip to content

Commit

Permalink
fixed map layout centering
Browse files Browse the repository at this point in the history
  • Loading branch information
SteRiccio committed Nov 15, 2024
1 parent da7ba27 commit d593e89
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,17 @@ export const convertDataToGeoJsonPoints = ({ data, attributeDef, nodeDefParent,

if (!point) return acc

const { x, y } = point

const properties = {
...extractCommonProperties({ dataItem, parentEntityColumn, ancestorsKeysColumns, i18n }),
point: PointFactory.createInstance({ x: point.x, y: point.y }),
point: PointFactory.createInstance({ x, y }),
...extraProperties,
}

const pointFeature = GeoJsonUtils.createPointFeature({ x: point.x, y: point.y, properties })
const pointFeature = GeoJsonUtils.createPointFeature({ x, y, properties })

acc.bounds.extend([point.x, point.y])
acc.bounds.extend([point.y, point.x])
acc.points.push(pointFeature)
acc.pointIndexByDataIndex[index] = acc.points.length - 1

Expand Down

0 comments on commit d593e89

Please sign in to comment.