1

This is my first time writing here. I want to display an image in an info window of google maps. After retrieving data from the database, i successfully displayed some data in the info window. But the problem is to display the image. 'clinics[i].image' is the one not executing.

infowindow.setContent('<div>' +
                        '<span>'+' <img src="{{ asset("storage/image/".'clinics[i].image') }}" style="height: 150px; width: 300px;"> '+ '</span><br>' +
                      '<span><h3> ' + clinics[i].name  + '('+clinics[i].type +')'+'</h3></span><br>' +
                       '<span>Hours: ' + clinics[i].hours + '</span><br>' +
                      '</div>'); 
Professor Abronsius
  • 33,063
  • 5
  • 32
  • 46

0 Answers0