Add image to openInfoWindowHtml

97 views
Skip to first unread message

Jorge Gonçalves

unread,
Dec 6, 2011, 7:18:14 PM12/6/11
to google-map...@googlegroups.com
I have code that a user uploads a pic whenever they set a marker and saves the image path. My question is how do I show the image instead of the path.

In the code below addslashes($row['image']   only shows the path not the actual image


echo 'var marker = new createMarker(point, markerOptions, "'.addslashes($row['image'].' <br> '.$row['description'].' <br> '.$row['datetime'].'<br>'.$row['address']).'");';

Rossko

unread,
Dec 6, 2011, 7:44:09 PM12/6/11
to Google Maps JavaScript API v3
> I have code that a user uploads a pic whenever they set a marker and saves
> the image path. My question is how do I show the image instead of the path.

See HTML <img> tag
http://www.w3schools.com/tags/tag_img.asp

Reply all
Reply to author
Forward
0 new messages