简体   繁体   English

使用扩展com.google.android.gms.maps.MapView和Google Map v2

[英]use extends com.google.android.gms.maps.MapView un google map v2

Is it possible to use ( extends com.google.android.gms.maps.MapView ) to show maps in google map v2, meaning that I want to use both mapView to use its methods like onTouchEvent to draw free lines by fingers using canvas on the map and I want to use the markers in the google map v2. 是否可以使用(扩展com.google.android.gms.maps.MapView)在Google Map v2中显示地图,这意味着我想同时使用mapView和onTouchEvent之类的方法来使用画布在手指上绘制自由线条地图,我想在Google Map v2中使用标记。 Is it possible to combine both features? 是否可以将两个功能组合在一起? Hope anyone got my mean. 希望有人明白我的意思。 Thanks in advance. 提前致谢。

I don't think that will work. 我认为那行不通。

You may just combine your CustomView with MapView like this: 您可以像这样将CustomViewMapView结合使用:

<FrameLayout ...>
    <MapView ... />
    <CustomView ... />
</FrameLayout>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 膨胀类com.google.android.gms.maps.MapView时出错 - Error inflating class com.google.android.gms.maps.MapView com.google.android.gms.maps.MapView上的OnTouchListener - OnTouchListener on com.google.android.gms.maps.MapView 尝试添加“ map:…”属性时,com.google.android.gms.maps.MapView中的布局XML中的未绑定前缀 - Unbound Prefix in layout XML in com.google.android.gms.maps.MapView when try to add “map:…” attribute Android:如何在不使用地图活动的情况下实施com.google.android.gms.maps.MapView - Android: How to implement com.google.android.gms.maps.MapView without using a map activity Android com.google.android.gms.maps.MapView animateCamera第一次无法使用 - Android com.google.android.gms.maps.MapView animateCamera does not work the first time android.view.InflateException:二进制XML文件行#6:错误导致类com.google.android.gms.maps.MapView - android.view.InflateException: Binary XML file line #6: Error inflating class com.google.android.gms.maps.MapView Google Map V2 Android,“错误导入com.google.android.gms.maps.model.LatLng” - Google Map V2 Android, “error import com.google.android.gms.maps.model.LatLng” Google Map API v2 java.lang.ClassNotFoundException:com.google.android.gms.maps.MapFragment - Google Map API v2 java.lang.ClassNotFoundException: com.google.android.gms.maps.MapFragment 错误java.lang.ClassNotFoundException:Google Map V2中的com.google.android.gms.maps.MapFragment - Error java.lang.ClassNotFoundException: com.google.android.gms.maps.MapFragment in Google Map V2 ClassNotFoundException:使用Google Map API v2的com.google.android.gms.maps.MapFragment和SupportMapFragment - ClassNotFoundException: com.google.android.gms.maps.MapFragment and SupportMapFragment using Google Map API v2
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM