I get the following error.
Mistake
SyntaxError: missing} after property list
content: Al futaim trading company <br /> Building M, 36, Saih Shuaib 3 -
Php code
$content=$servicecenter->getCompanyName()."<br />".$servicecenter->getAddress()."<br /><button type='button' value='Get Direction' class='button' onclick='closeInfoWindow(),calcRoute()' name='Get Direction'>Get Direction</button>";
Script
var infowindow = new google.maps.InfoWindow({ content:<?php echo $content; ?>; });
javascript php google-maps
Qaisar Satti
source share