ground-android icon indicating copy to clipboard operation
ground-android copied to clipboard

Use composition instead of inheritance to define map and map control UIs and behaviors

Open gino-m opened this issue 2 years ago • 2 comments
trafficstars

@shobhitagarwal1612 @JSunde, rough design:

image

gino-m avatar Sep 20 '23 22:09 gino-m

What does MapControlsFragment and MapControlViewModel do?

shobhitagarwal1612 avatar Sep 21 '23 05:09 shobhitagarwal1612

What does MapControlsFragment and MapControlViewModel do?

These would encapsulate all the controls that get overlaid on the map:

  • Location lock
  • Layers button
  • Any other controls we might end up adding which can be used across map experiences

MapContainerFragment would be responsible for wiring up MapControlsViewModel to MapViewModel.

gino-m avatar Sep 21 '23 14:09 gino-m