Jim*_*ins 6 android google-maps-android-api-2
我正在尝试利用InfoWindowAdapter为InfoView提供自定义内容.我从我的网络服务中删除了JSONArray并添加了标记,但我没有看到如何通过标记将细节传递给回调.
@Override
public View getInfoWindow(Marker marker)
Run Code Online (Sandbox Code Playgroud)
在Javascript API中,我只能设置任意标记信息.我希望能够传递可用作自定义内容的条件的信息,例如marker.status字符串.所以除了title等之外的东西.视图需要传递一些自定义字段.
或者尝试将您的信息或对象添加到标记中,如下所述:http: //bon-app-etit.blogspot.be/2012/12/add-informationobject-to-marker-in.html
编辑:我还发了一个帖子继续前一个使用InfoWindowAdapter.看看这里!
| 归档时间: |
|
| 查看次数: |
4375 次 |
| 最近记录: |