Resolve MIN-189 "/display general overlays"
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
- fetch bioEntities for overlay
- parse them to object containing upper left corner and bottom left corner coordinates + color value - this allow rendering
- in
useOlMapOverlaysLayer
bioEntities for current selected map are selected - based on coordinates add rectangle in
getOverlayFeatures
function and set their color - add features to layer
- add layer to map
- 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