Skip to content

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

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