如何在标记工具提示的文本中插入换行符。我正在使用\n
它似乎不起作用。
请参见下面的代码:
mark = new google.maps.Marker({
map: map,
position: center,
title:inspStates[i].name+ "\n"+"total: "+inspStates[i].totalInsp+ "\n"+ info,
zIndex:3
});