how to insert image markerOption on google map for Android
Picture Figure 1.1
https://i.stack.imgur.com/PNcEm.png
code
try {
for(int i = 0; i < data.length(); i++){
JSONObject c = data.getJSONObject(i);
map = new HashMap<String, String>();
map.put("latitude", c.getString("poi_latitude"));
map.put("longitude", c.getString("poi_longitude"));
map.put("ImgPath", c.getString("images_path"));
map.put("ImgName", c.getString("images_name"));
MyArrList.add(map);
String Image = MyArrList.get(i).get("ImgPath" + "ImgName");
String Image1 = "<img src='" + Image + "'" + "width='42' height='42'>";
Spanned spannedContent = Html.fromHtml(Image1, getImageHTML(), null);
MarkerOptions markerOption = new MarkerOptions();
markerOption.title(MyArrList.get(i).get("name"));
//markerOption.icon(BitmapDescriptorFactory.fromBitmap(bitmap));
markerOption.snippet(spannedContent.toString());
LatLng latlng = new LatLng(Double.parseDouble(MyArrList.get(i).get("latitude")), Double.parseDouble(MyArrList.get(i).get("longitude")));
markerOption.position(latlng);
mMap.addMarker(markerOption);
}
help me!!