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 的同一个应用程序中使用 MapView 和 GoogleMap 吗?我为地图使用 API V2。我的意图是我想在地图上覆盖地理围栏应用程序。但是 GoogleMap 不能很好地支持覆盖。谢谢
如果您的意思是来自 Android API v1 的 MapView,那么不,您不能。
API v1 需要您扩展MapActivity,而 v2 需要FragmentActivity(使用 SupportMapFragment 时)。您可以将 Maps v1 和 v2 合并为一个Activity,但只能作为两个单独Views的。
MapActivity
FragmentActivity
Activity
Views
无论如何GoogleMap,对叠加层都有很好的支持。有GroundOverlay和TileOverlay。如果遇到问题,您可能想问一个新问题,如何与他们一起实现某些目标。
GoogleMap
GroundOverlay
TileOverlay