设为首页 加入收藏

TOP

Android中调用高德地图的自定义标记视图
2014-11-24 03:17:12 来源: 作者: 【 】 浏览:2
Tags:Android 调用 高德 地图 定义 标记

aMap.addMarker(new MarkerOptions().position(mList.get(i)).snippet(myFans.get(i).getNickname()).icon(BitmapDescriptorFactory.defaultMarker()));

3、可以设置窗口模式,再点击标记后自动回调getInfoWindow()、getInfoContents(),如果需要自定义显示图像可以在这两个方法里调用render(marker, mWindow);,同时需要在CustomInfoWindowAdapter()里加入需要显示的布局view CustomInfoWindowAdapter() {

mWindow = getLayoutInflater().inflate(R.layout.custom_info_window, null);

mContents = getLayoutInflater().inflate(R.layout.custom_info_contents, null);

// mOptions = (RadioGroup)

// findViewById(R.id.custom_info_window_options);

}

在render方法里处理标记提示信息具体的内容,包括显示人名、点击事件等等。


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Android编程心得-图片自适应心得 下一篇Lua 语言 15 分钟快速入门

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·请问微信4.0版本xwec (2025-12-24 22:48:42)
·电脑NVIDIA的文件夹 (2025-12-24 22:48:40)
·如何看待微信新版本 (2025-12-24 22:48:37)
·C语言中如何将结构体 (2025-12-24 22:20:09)
·纯C语言结构体成员变 (2025-12-24 22:20:06)