-
Notifications
You must be signed in to change notification settings - Fork 3
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
autozoom to search results seems to only include bounding boxes not points #78
Comments
Is this a data hygiene issue? Are there bad data? Should the points be included in the bounding box? |
I guess we should try to reproduce that behavior & test it w some other Natalie Meyers On Jun 17, 2015, at 9:17 AM, Don Brower notifications@github.com wrote: Is this a data hygiene issue? Are there bad data? Should the points be — |
I haven't had a thorough look at this since we spotted it but : I don't think it's a data issue or the existing bounding box should be changed. That is what the current code is supposed to do. This issue was made as a reminder when to add the related points to the function that determines what to include in the zoom. |
Apologies, I take that back! https://github.com/vecnet/dl-discovery/blob/qa-deploy/app/assets/javascripts/modules/vndl_map.js.erb#L366 Should already extend the bounds to include any lat/lngs from points as well as rectangles/bounding boxes. |
is any part of this problem related to the way auto-zoom and the records per page and the total hitlist count work together? I was wondering after demoing to Tom Burkot yesterday whether if we had default records per page be bigger than the hitlist count if this problem would get better? I know that doesn't solve the problem or scale but it might help us debug? For example if my search returns 28 records I want to see all those points on the map regardless of whether they are displayed in the records per page count set that displays in the hit-list? I think the disconnect between record count and displayed records is what makes this feel counter-intuitive to the user? They think they should see more points and they are "right"? |
Definitely not (just) a data issue -- the map should behave in a sensible way even when points are outside of bounding boxes, or a record doesn't have a bbox (and I still believe that if bboxes are only a box drawn around a record's points, then they're not data, they're just an artifact of optimisation and shouldn't be shown to humans). My guess at most likely cause is that there are valid and correct bboxes being delivered to the browser, and the map code just isn't parsing them properly. If there aren't bboxes, but there is a data policy that says the bbox should include all the record's points, there might be an additional data bug on top of the display bug. Steven and I will look at it in the next few hours and work out which is which :) |
@nkmeyers we had considered whether we should show every result's points, rather than just the current page's points. It's not impossible, but we'd have to work out how to do something sane when there are 5000 results, each with 20 mappable points.. |
e.g. search for Anopheles, the map zooms to the east african coast, ignoring the points outside that region.
The text was updated successfully, but these errors were encountered: