I have created branch draw_elements and in one commit defined all types that define how the Map component should be built. See the changes and fix the code so everything works as intended. The goal is to have these MapDrawElement types that are specialized only to carry data necessary to draw the corresponding shape/UI object on the map.
Try to make this as flexible as possible. Map accepts list of elements (polymorphism/heterogeneous list). The main goal is to be able to easily add new draw element types, change their behaviors and/or appearances, change their types and more. All these changes should be small and simple in the future.
I have created branch
draw_elements
and in one commit defined all types that define how the Map component should be built. See the changes and fix the code so everything works as intended. The goal is to have theseMapDrawElement
types that are specialized only to carry data necessary to draw the corresponding shape/UI object on the map.Try to make this as flexible as possible. Map accepts list of elements (polymorphism/heterogeneous list). The main goal is to be able to easily add new draw element types, change their behaviors and/or appearances, change their types and more. All these changes should be small and simple in the future.