javascript - Issue in Info window content in maps -


i getting html content in
info window:

    lattitide: 12.936107     longitude: 77.5467362     <table border='0'><tr><td><img src="/static/images/sw.jpg" alt="restaurants" align = "left"></td> <td>subway</td> <td>garden road</td></tr></table> 

instead of image.
data there in array variable called dataarray.

in python code: sending javascript's dataarray

imageurl = "<img src=\"/static/birdsimage/"+bird+".jpg\" alt=\"bird\" align = \"left\">" 

in javascript

function getcontent(index) {     var content = '<table style="border:0"><tr><td style="border:0;">';     content += 'lattitide: ' + '</td>'+ '<td style="border:0">'+ latarray[index] + '</td>'     content += '<tr><td width="40" style="border:0" > longitude: '+ '</td>' + '<td style="border:0">'+ longarray[index] + '</td>'     content += '</tr></table>';     content += '<center>'+ dataarray[index] + '</center>'            return content;          } 

this using in

infowindow = new google.maps.infowindow({         content: getcontent(i) }); infowindow .open(map, markers[i]); 

please me resolve problem..
thank you..


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -