android-maps-compose icon indicating copy to clipboard operation
android-maps-compose copied to clipboard

Generic Draw Overlay

Open travisgriggs opened this issue 2 years ago • 2 comments

I'm trying to replicate an iOS ag irrigation app that has relatively complicated map overlays. 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?

travisgriggs avatar May 01 '23 20:05 travisgriggs

If you would like to upvote the priority of this issue, please comment below or react with :+1: so we can see what is popular when we triage.

@travisgriggs Thank you for opening this issue. 🙏 Please check out these other resources that might help you get to a resolution in the meantime:

This is an automated message, feel free to ignore.

wangela avatar May 01 '23 20:05 wangela

Is there any update?

nghinguyengr avatar Jun 17 '25 03:06 nghinguyengr