Hi,I searched a lot but i couldnt find. Is there any way to put label above/below marker like this?
Thanks.

You can create Bitmap and set it to marker
public Bitmap getMarkerIconWithLabel(String label, float angle) {
IconGenerator iconGenerator = new IconGenerator(mContext);
View markerView = LayoutInflater.from(mContext).inflate(R.layout.lay_marker, null);
ImageView imgMarker = markerView.findViewById(R.id.img_marker);
TextView tvLabel = markerView.findViewById(R.id.tv_label);
imgMarker.setImageResource(R.drawable.marker);
imgMarker.setRotation(angle);
tvLabel.setText(label);
iconGenerator.setContentView(markerView);
iconGenerator.setBackground(null);
return iconGenerator.makeIcon(label);
}
@Override
protected void onBeforeClusterItemRendered(LiveTrackingModel item, MarkerOptions markerOptions) {
super.onBeforeClusterItemRendered(item, markerOptions);
markerOptions.icon(BitmapDescriptorFactory.fromBitmap(getMarkerIconWithLabel("Marker1",26.6)))
}
Thank you Kintanpatel4393, this is exactly what I'm looking for.
Most helpful comment
You can create Bitmap and set it to marker
@Override protected void onBeforeClusterItemRendered(LiveTrackingModel item, MarkerOptions markerOptions) { super.onBeforeClusterItemRendered(item, markerOptions); markerOptions.icon(BitmapDescriptorFactory.fromBitmap(getMarkerIconWithLabel("Marker1",26.6))) }