googlemaps / googlemaps/android-maps-compose
Generic Draw Overlay
- Dominant language
- Kotlin
- Stars
- 1.3k
- Forks
- 181
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 18
Description
I'm trying to replicate an iOS ag irrigation app that has [relatively complicated map overlays](https://pasteboard.co/hVg0QeIezh2c.jpg). The overlays include:
- Circles (there already)
- Polygons (exists)
- Part Circles with arbitrary sweep/start (not there)
- Rectangles (can be done with Polygons)
- Partial fills that show progress as watering completes (not supported)
- Styled borders (I guess you could fudge it with multiple overlays? ugh)
- Cross hashed fills (not sure if the Compose Color can do these? Might be doable? Seems its more of a Brush thing?)
What would be nice is if there was something akin to Circle/Polygon that just takes a draw block, and adds local helpers to translate from latlon coords into drawing space, as well as scale distance in meters.
The general purpose Circle/Polyshape would be nice for quick and dirty, but anything complex, a DrawOverlay that basically did adapted Canvas drawing would enable just about any kind of overlay a person could dream up of.
If such a thing is possible already, I apologize for asking; would you please point me in the right direction?
Contributor guide
Assessment
This issue has not been assessed yet.