-
Notifications
You must be signed in to change notification settings - Fork 394
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
TimeLine component for time ranges - Filter does not work correctly #9268
Comments
These issues are part of the Timeline bugs resolutions development, part of #9208 (MapStore issue) |
SolutionI found that the change here was not correct. In fact in case that histogram and domain are both absent, it shows the list of values from domain. Instead is should always give priority to range data, that tells that no data is present at all. Investigation notesThe investigation was a little conplcated because i found some initial issued that looked to be the root of the problem but they was not. In particular I found some problems that made my investigation a little complicated: here I log all the rest of the investigation that can be useful.
In fact when panning and sooming the bbox on the state of the map, even if I zoom the full world extent, is always something like:
With minx values and miny values very near. This is returned directly by this function here:
The data returned makes non-sense. Probably related to this issue already notified to openlayers team Other maps like the meteorite landings one, do not have this issue. So i tried to add the meteorite landing map the donuts layer and it works. http://localhost:8081/?debug=true/#/viewer/46341 Now we have to find out the differences between the map that works and the map that do not work, and what makes openlayers get mad.
MapStore2/web/client/epics/timeline.js Line 128 in 2e09d7f
This line doesn't take into account the case when the domain returns an array. In this case I have an error in console.
anyway this is not properly related to this case. |
Hello @offtherailz, I am testing with the THIS IS THE PR BRANCH BEHAVIOUR THIS IS THE DEV BEHAVIOUR |
I comment just for making note that the issue was probably due to a wrong map center calculation that makes OL generate wrong bboxes for filtering. the issue is cause by the {"version":2,"map":{"center":{"x":6662525.329597231,"y":50.652011207093054,"crs":"EPSG:4326"} ...} |
@tdipisa, this issue needs to be re-opened to allow further testing on the latest issue found by the client. Issues found by client; We tested the BBOX plotting it on the map and focusing on map area and, even if we cannot replicate the same exact map focus, we can still see there are features that are not correctly filtered on the TimeLine bar, while they are not visible on the map, domains from the At this stage, we cannot be sure where the issue might be (Front-End or Back-End) could check the cause on this example map and see if it is related to MapStore and fix? Thanks the test map an example of a non-applied filter |
@ale-cristofori please open a new issue reporting the steps to reproduce etc as usual. Assign the same milestone please. Thank you. |
closed in favour of #9843 |
Description
The 'show only times available in the current viewport' filter for the timeline component does not seem to be working correctly. The functionality does not work when no features are present in the viewport (no bars should be shown in the timeline component) and for other types of data the display of the bars seems to be inconsistent with the number of features in the viewport.
How to reproduce
show only times available in the current viewport
Expected Result
For the layer test_time The bars in the timeline histograms should disappear since there should be no feature visible in that remote area. For the layer donut_2011 only when only one feature is displayed in the map viewport only one bar should be displayed in the histogram.
Current Result
For the layer test_time The bars in the timeline histograms show as if they were not filtered even though no features are visible in that remote area. For the layer donut_2011 only when only one feature is displayed in the map viewport many more bars are displayed in the histogram.
Browser info
(use this site: https://www.whatsmybrowser.org/ for non expert users)Other useful information
recording_1.mp4
The text was updated successfully, but these errors were encountered: