You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am playing with the automotive library and I managed to run all the examples and created a project with the templates.
I noticed that using the PlaceListMapTemplate displays the map but when i try using the NavigationTemplate the screen is black (other actions and buttons appear) but only the map is not showing.
Is is something that I am not doing right or missing a KEY for the map or donno? The examples are using a PNG drawn map and is not that obvious what is wrong.
The text was updated successfully, but these errors were encountered:
Im also facing the same issue. Please help. @nonnull @OverRide
public Template onGetTemplate() {
ActionStrip actionStrip =
new ActionStrip.Builder()
.addAction(
new Action.Builder()
.setTitle("NavigationMapOnlyScreen")
.setOnClickListener(this::finish)
.build())
.build();
return new NavigationTemplate.Builder().setActionStrip(actionStrip).build();
}
Hi,
I am playing with the automotive library and I managed to run all the examples and created a project with the templates.
I noticed that using the PlaceListMapTemplate displays the map but when i try using the NavigationTemplate the screen is black (other actions and buttons appear) but only the map is not showing.
I tried to do this simple example on Polestar2:
class NavigationMap(carContext: CarContext) : Screen(carContext) {
override fun onGetTemplate(): Template {
val actionStrip = ActionStrip.Builder()
.addAction(
Action.Builder()
.setTitle("BACK")
.setOnClickListener { this.finish() }
.build())
.build()
return NavigationTemplate.Builder()
.setActionStrip(actionStrip)
.setBackgroundColor(CarColor.SECONDARY)
.build()
}
}
Is is something that I am not doing right or missing a KEY for the map or donno? The examples are using a PNG drawn map and is not that obvious what is wrong.
The text was updated successfully, but these errors were encountered: