Markers for POI/ Charging station locations do not appear anymore on the map of PlaceListMapTemplate and only shown on the list. I didn’t change anything in the code but sharing it to double check. Has anyone has been having similar issues lately?
currentTemplate = new PlaceListMapTemplate.Builder()
// TODO: Get the app name from flavour
.setTitle(Util.s(R.string.auto_app_name))
.setCurrentLocationEnabled(true)
.setItemList(listBuilder.build())
.setHeaderAction(Action.APP_ICON)
.setActionStrip(actionStrip.build())
.build();
And the list is created like this with the marker.
listBuilder.addItem(new Row.Builder()
.setTitle(Util.s(R.string.station_title))
.addText(operatorText)
.addText(getDescription(station))
.setMetadata(metaBuilder.setPlace(new Place.Builder(CarLocation.create(station.getLocation()))
.setMarker(new PlaceMarker.Builder()
.setColor(station.getState().color)
.setLabel(String.valueOf(n)).build())
.build()).build())
.setOnClickListener(() -> {
ScreenManager screenManager = getScreenManager();
screenManager.push(new StationDetailScreen(getCarContext(), station));
})
.setBrowsable(true)
.build());