googlemaps / android-maps-compose

Jetpack Compose composables for the Maps SDK for Android
https://developers.google.com/maps/documentation/android-sdk/maps-compose
Apache License 2.0
1.14k stars 135 forks source link

Projection from screen location with floating point #461

Open ad11111111 opened 9 months ago

ad11111111 commented 9 months ago

Hey. I'm trying to use the projection.fromScreenLocation to place a marker on the map in a certain position. That method only accepts Point without floating point value. I need to divide screen in half and the value divided on some devices returns floating point value.

I would like to have a version of that method which accepts PointF class.

I have searched the source code but couldn't find it. Or maybe there is a different way to do it which you can point me to.

Thanks,

Adrian

wangela commented 9 months ago

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

@ad11111111 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.