Potential Refactoring: Move center point state from `Minimap`/`View` to `Map` component
Opened this issue · 0 comments
rubenthoms commented
Currently, View
and Minimap
handle their own state and send a new center point to Map
which then updates the other child components. On the one hand, this makes View
and Minimap
independent from a parent component but on the other hand, one information is handled in several states. We should observe how the components perform, what requirements are developing over time and see if independency of View
and Minimap
is required at all. It might be beneficial to use one state only for storing the center point information and derive the offset values from it.