【问题标题】:Android - Google Map shows blurry screen when map moveAndroid - 地图移动时谷歌地图显示模糊的屏幕
【发布时间】:2015-11-08 04:30:07
【问题描述】:

我有一个片段地图视图:

<fragment
    android:id="@+id/map"
    android:name="com.google.android.gms.maps.SupportMapFragment"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_below="@+id/llHeader" />

当接收到 GPS 信号并且谷歌地图显示模糊的屏幕时,地图会移动到当前位置。 任何人都可以帮助我,对不起我的英语。

【问题讨论】:

  • 在地图上绘制点时设置的缩放比例是多少?可能是这个原因
  • @brayan camilo villate leon:我在为地图设置动画时没有设置缩放。 mGoogleMap.animateCamera(CameraUpdateFactory.newLatLng(latlng));
  • 试试这个。 mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(latlng), 12));

标签: android google-maps


【解决方案1】:

试试这个:

mMap.animateCamera( CameraUpdateFactory.newLatLngZoom( new LatLng( latlng ), 12 ) );

【讨论】:

    猜你喜欢
    • 2013-05-16
    • 1970-01-01
    • 1970-01-01
    • 2017-03-26
    • 1970-01-01
    • 2017-02-26
    • 2017-05-22
    • 2013-09-07
    • 1970-01-01
    相关资源
    最近更新 更多