Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MapFillComponent accumulates paths from preceding dataset entries #231

Open
chris-landclan opened this issue Nov 5, 2021 · 2 comments
Open

Comments

@chris-landclan
Copy link

chris-landclan commented Nov 5, 2021

Scenario: Report has a map component and is given a datasource with multiple entries, say 3, each row has different path data.

When the report is filled, the MapFillComponent does not reset the path data from the preceding entries such that the pathDataList.get(0).evaluatedItems is accumulating the paths from previous entries. The outcome is that the first entry shows it's path ok, the second entry shows both its own path and the path for entry 1 as one path, and the third entry shows all three paths, again all joined up as one path.

Shouldn't the paths be reset for each entry? See map examples below.

Entry 1
image

Entry 2
image

Entry 3
image

@teodord
Copy link
Collaborator

teodord commented Dec 15, 2021

You mean you want to ave 3 independent regions without them being linked with lines. You want 3 islands, right?

Thank you,
Teodor

@chris-landclan
Copy link
Author

You mean you want to ave 3 independent regions without them being linked with lines. You want 3 islands, right?

No, I am saying that the connected island phenomenon is a bug that becomes apparent when you have more than one row in your dataset. Each map should only show one of the polygons, but the dataset rows are not resetting the map data from the previous row such that they are accumulating as the report adds more entries. If there is only one item in your report (i.e. one map, if each item has one map), then this bug is not apparent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants