0
我有工作的PHP脚本,在变量中存储公司的名称和地址。然后我这样回显:Gmap3:如何给标记添加标题?
$(document).ready(function() {
$("#map").gmap3({
marker:{
address: "<?echo $coord;?>"
},
map:{
options:{
zoom:15,
mapTypeControl: true,
navigationControl: true,
scrollwheel: true,
streetViewControl: true
}
}
});
});
我该如何添加公司名称以显示在标记下方?例如:this?
我尝试添加:
marker:{
address: "<?echo $coord;?>"
title: "<?echo $com_name;?>"
}
但是,这是行不通的。
谢谢。