I have a icon image in drawable folder and i set it to map marker icon but i need to set an image to on above the existing marker click to See the white portion of the image(1st) on where i want to show an image (2nd) this image to be shown on that previous white portion of that 1st image.
*The first image is a custom marker which is static and i get it from the drawable folder.
*The second one is a simple image which i get from web service url.**
LatLng userPosition = new LatLng(
Double.parseDouble(item.latitude),
Double.parseDouble(item.longitude));
googleMap.addMarker(new MarkerOptions()
.position(userPosition)
.title(item.vendorname)
.snippet("Service : " + item.category_name)
.icon(BitmapDescriptorFactory.fromResource(R.drawable.location_pin))
These above codes are for view the marker icon on the map.But i need to show an another image above it.So i get the url via web service like this(below code).
try {
URL url = new URL(CommonUtilities.Thumb_Call+ item.vendor_icon);
bmp = BitmapFactory.decodeStream(url.openConnection().getInputStream());
bmp = BitmapFactory.decodeFile(String.valueOf(url));
}
catch (Exception e)
{
e.printStackTrace();
}
Please help me to set the image on above the marker which is coming from the url.