有人知道如何在Google地图标记上添加多行片段吗?这是我添加标记的代码:
map.getMap().addMarker(new MarkerOptions()
.position(latLng()).snippet(snippetText)
.title(header).icon(icon));
我希望代码片段看起来像这样:
| HEADER |
|foo |
|bar |
但是当我试图将snippetText设置为“foo \n bar”时,我只看到foo bar
,我不知道如何使它多行。你能帮我吗?
snippet
加一分。 - LinusGeffarthmMap
变量名,因为我也没有改过它。 - Pratik Butani