Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的 android 项目中使用 Google map v2。我知道可以添加自定义标记。
但我问是否可以在地图中添加自定义图标?例如:飞机图标或船舶图标并将其拖动到任何位置?就像屏幕截图中的一样
您可以添加任何可绘制对象作为标记。像这样
MarkerOptions marker= new MarkerOptions() .position(location) .icon(BitmapDescriptorFactory. fromResource(R.drawable.map_marker_cab_pickup)); map.addMarker( marker );