Skip to content

BGDIINF_SB-2683: Fixed GeoJSON layers#313

Merged
ltshb merged 2 commits intodevelopfrom
bug-BGDIINF_SB-2683-geojson
Nov 30, 2022
Merged

BGDIINF_SB-2683: Fixed GeoJSON layers#313
ltshb merged 2 commits intodevelopfrom
bug-BGDIINF_SB-2683-geojson

Conversation

@ltshb
Copy link
Contributor

@ltshb ltshb commented Nov 29, 2022

Some GeoJSON layers were not displayed correctly. Styling with a geometry type
of point where not displayed due to a wrong string comparison ('point' === 'Point')

Also sometimes we could have a crash due to a non existing layer object which
was due to the fact that when hovering a search result a layer is created and
asynchronously the layer style was loaded, meanwhile when the hover is gone
the layer is destroyed which can happen before the layer style load from backend.

Updated some missing event in emit list to prevents vue warning.

  • Click on geojson feature don't open popup !

Test link

@github-actions github-actions bot added the bug label Nov 29, 2022
@ltshb ltshb force-pushed the bug-BGDIINF_SB-2683-geojson branch 2 times, most recently from 1593c11 to 3355ae6 Compare November 29, 2022 13:57
@ltshb ltshb requested a review from pakb November 29, 2022 15:31
@ltshb ltshb force-pushed the bug-BGDIINF_SB-2683-geojson branch 2 times, most recently from dc6c5a3 to e730561 Compare November 30, 2022 08:38
Copy link
Contributor

@pakb pakb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about this refactoring working as intended

@ltshb ltshb requested a review from pakb November 30, 2022 12:43
Some GeoJSON layers were not displayed correctly. Styling with a geometry type
of `point` where not displayed due to a wrong string comparison (`'point' === 'Point'`)

Also sometimes we could have a crash due to a non existing layer object which
was due to the fact that when hovering a search result a layer is created and
asynchronously the layer style was loaded, meanwhile when the hover is gone
the layer is destroyed which can happen before the layer style load from backend.

Updated some missing event in emit list to prevents vue warning.
We could not select GeoJSON layer feature on the map. The issue was due to
wrong layerFilter in the OpenLayersMap.

Then once the feature selection was fixed the position was not correctly
marked as selected due to the wrong coordinates in the features.api were
the setter was not called.

Finally the content of the popup was wrong due to the missing feature name
in the LayerFeature.
@ltshb ltshb force-pushed the bug-BGDIINF_SB-2683-geojson branch from e730561 to 1fb774f Compare November 30, 2022 14:16
@ltshb ltshb merged commit 92fbdd7 into develop Nov 30, 2022
@ltshb ltshb deleted the bug-BGDIINF_SB-2683-geojson branch November 30, 2022 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants