Skip to content
Snippets Groups Projects

feat(map): click far away from element still select this element (MIN-207)

Merged mateusz-winiarczyk requested to merge MIN-207-click-far-away-from-element into development

Added:

  1. button clearing all pins and reactions
  2. After clicking on the map, the distance between the click and the returned bioEntity/reaction from backend is calculated. If the distance exceeds the maximum distance that allows the element to be shown, the element is not shown and all visible pins/reactions are cleared. For bioEntities: calculation of the distance between a point and a rectangle. For reactions: calculation of the distance between a point and each of the line segments forming the reaction The function calculates the maximum click distance by scaling the provided search distance based on the difference between the maximum zoom level and the current zoom level, with a zoom factor of 2 for each zoom level change.

BioEntities click:

bioentities-click-far-away

Reactions click:

click-reaction-far-away

Search by coordinates with zoom - reactions:

search-by-coordinates-zoom-reaction

Search by coordinates with zoom - bioEntity:

search-by-coordinates-zoom-bioentity

Closes MIN-207

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading