i want to change default red marker which is showing in all markers. i want to set different markers for all items. how can i do that.?
Hi @Slake07,
@Override
protected void onBeforeClusterItemRendered(MyItem item, MarkerOptions markerOptions) {
super.onBeforeClusterItemRendered(item, markerOptions);
markerOptions.title(item.getTitle());
BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.pin);
markerOptions.icon(icon);
}
In this method you can change your marker.
This issue has been automatically marked as stale because it has not had recent activity. Please comment here if it is still valid so that we can reprioritize. Thank you!
Closing this. Please reopen if you believe it should be addressed. Thank you for your contribution.
Most helpful comment
Hi @Slake07,
@Override
protected void onBeforeClusterItemRendered(MyItem item, MarkerOptions markerOptions) {
super.onBeforeClusterItemRendered(item, markerOptions);
}
In this method you can change your marker.