This exercise will help to set custom marker instead of default marker.🚩 Something like in the screenshot below To set an custom marker you can use the previous exercise - Draw Polyline on GoogleMap of Google Maps Android API v2 And make an edit on set marker on it. Place where the marker is set MarkerOptions markerOptions = new MarkerOptions(); markerOptions.position(latLng); markerOptions.icon(BitmapDescriptorFactory.fromBitmap(getMarkerBitmapFromView(R.drawable.pulis, context))); Custom Marker function[getMarkerBitmapFromView(int,context)] public static Bitmap getMarkerBitmapFromView(@DrawableRes int resId, Context context, int check) { View customMarkerView = ((LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(R.layout.view_custom_marker, null); CircleImageView markerImageView = customMarkerView.findViewById(R.i...
Learn with Samples