-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Render on Surface's canvas for Android Auto support #532
Comments
I know very little about Android Car APIs, so my answer may be a bit off. But looking at the question at high level, I do not think it is possible without complex workarounds. The issue here is that Carto Mobile SDK needs to configure its rendering surface itself, as there are specific format requirement to depth buffer and stencil buffer in order to provide correct rendering. But A possible workaround would be to render the map using normal |
I have tried with TextureView but it cant render without attached to a View |
Ok, if you need to render map without having a view, you would probably need to make a custom |
Perhaps there is also a way to create transparent/invisible |
@mtehver how would I hook up my custom Carto Just a general approach or procedure would be great, thanks. |
@phileo @ankiimation Have you found a solution for Android Auto? I can copy the rendered image to the Android Auto surface, but the issue is that the MapView is attached to a view, so when the app goes into the background, it stops rendering. |
@safe-bug you can use TextureMapView which have been added a while back |
@farfromrefug I've tried TextureMapView but it must be added to view hierarchy in order to always be rendered. For example if I close the app UI and have a service in the background it doesn't render the TextureMapView. |
@safe-bug ok not sure, i dont know much about android auto. Have you search the web on how to do what you want? |
@farfromrefug Android Auto only provides a surface for drawing. I need to pass this surface to Carto for rendering. Is it possible to achieve this by modifying the TextureMapView code? |
@safe-bug seems like it is not easy stadiamaps/ferrostar#7. PRs are welcome but for now seems quite hard |
I'm using the Carto to display maps on my Android application. However, I'm having trouble figuring out how to render the map on the android-auto Navigation Template that already provides a Surface to render on.
Thanks in advance!
The text was updated successfully, but these errors were encountered: