Skip to content

Resolve MIN-189 "/display general overlays"

Tadeusz Miesiąc requested to merge MIN-189/display-general-overlays into development

Description

This PR introduces basic overlay functionality.

Things done

  • render one overlay
  • fetch bioEntities for overlay
  • fetch configuration (to use default colors later)
  • get color value based on linear value from configuration
  • display overlay on view click

How it works

  1. fetch bioEntities for overlay
  2. parse them to object containing upper left corner and bottom left corner coordinates + color value - this allow rendering
  3. in useOlMapOverlaysLayer bioEntities for current selected map are selected
  4. based on coordinates add rectangle in getOverlayFeatures function and set their color
  5. add features to layer
  6. add layer to map
  7. render 😄

Cases not covered

  • Did not cover case where receiving color in different properties from API - coming in next PR

Things not done

  • switching overlay off
  • rendering multiple overlays
  • testing - I did not test hooks, and store function since there will be few quite big changes in next PR - it would be waste of time

Merge request reports