I am currently working on code that extracts information from a JSON variable and displays it on a map. The code looks like this:
marker.info_window_content = place.image + '<br/>' +"<h4>" + place.name + "</h4>" + place.description + '<br/>' + place.belongs_to + '<br/>' + '<br/>' + place.categories
self.markers[place.id] = marker
However, instead of displaying the image itself, the output only shows the link to the image, like this:
https://imagelocationishere.jpg
I have attempted to include an image icon in the code, but it still doesn't display the actual image. Here is the code I tried:
'<img src=' + place.image + '/>'
Could someone please advise me on how to adjust the code so that the image can be displayed properly, or suggest improvements for better output?
Thank you.