Android Auto support #839
-
Hi, i want to use VTM with Android Auto as Map Renderer. Unfortunately it's not as easy as to add a MapView and everything works. On Android Auto all you get is a For example:
Surface is of type Is there an easy way (maybe something similiar already exists, that i could look at), to use the existing Render logic, to directly draw on a canvas? Or maybe i can also feed the renderer with the Surface and the Renderer does the rest. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
This is just a shot in the blue, but could it work to overwrite the onDraw function of Edit: No it does not work. OnDraw is never called. Guess it's not that easy as to just overwrite onDraw(). |
Beta Was this translation helpful? Give feedback.
-
Here is some stripped down sample code of a possible surface renderer from the Android Auto samples:
I would really like to use VTM for this project, as the maps really look awesome, especially in 3D mode. But I can't figure out, how to get it to work with AA and the restriction that we can only draw on a canvas.. |
Beta Was this translation helpful? Give feedback.
-
In such case you could need a new custom vtm-android module specifically for Android Auto, VTM (like Mapsforge) has a common graphics API to work on many platforms. |
Beta Was this translation helpful? Give feedback.
-
That should be in And |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply. |
Beta Was this translation helpful? Give feedback.
In such case you could need a new custom vtm-android module specifically for Android Auto,
so that the rendering follows its requirements.
VTM (like Mapsforge) has a common graphics API to work on many platforms.
Perhaps Android Auto needs a new module to implement its custom rendering.