【发布时间】:2013-09-25 16:04:37
【问题描述】:
是否可以在设置后更改 GoogleMap 标记内的文本?我使用 MarkerOptions 来设置标题和 sn-p 原来是这样的:
SupportMapFragment theMapFragment = (SupportMapFragment)getSupportFragmentManager().findFragmentById(R.id.map);
GoogleMap theMap = theMapFragment.getMap();
MarkerOptions theMarker = new MarkerOptions();
theMarker.position(theLatLng);
theMarker.title("My title");
theMarker.snippet("This is my snippet");
theMarker.visible(true);
theMap.addMarker(theMarker);
稍后,当用户点击某物时,我想执行反向地理编码查找并更改标题/sn-p 以包含地址信息。
【问题讨论】:
标签: android google-maps google-maps-markers