google-maps-clustering icon indicating copy to clipboard operation
google-maps-clustering copied to clipboard

no text in cluster after change icon

Open AymenSoft opened this issue 7 years ago • 0 comments

i change the cluster icon to a personlized one, but the text dissepire i can't show it please help and thank you clusterManager.setIconGenerator(new IconGenerator<BikesClusterItem>() {

        @NonNull
        @Override
        public BitmapDescriptor getClusterIcon(@NonNull Cluster<BikesClusterItem> cluster) {
            return vectorCircle;
        }
        @NonNull
        @Override
        public BitmapDescriptor getClusterItemIcon(@NonNull BikesClusterItem clusterItem) {

            BitmapDescriptor pinMarker = finalPinWork;

            switch (clusterItem.getBike_breakdown()){
                case "false":
                    pinMarker = finalPinWork;
                    break;
                case "true":
                    pinMarker = finalPinMaintenance;
                    break;
                default:
                    break;
            }

            return pinMarker;
        }
    });

AymenSoft avatar Nov 21 '18 18:11 AymenSoft