I have implemented a MapView in android. I need to achieve following things in maps
Enable the zoom gestures on your map object and disable the scroll gestures:
@Override
public void onMapReady(final GoogleMap googleMap) {
googleMap.getUiSettings().setZoomGesturesEnabled(true);
googleMap.getUiSettings().setScrollGesturesEnabled(false);
}
您可以使用以下方法禁用MapFragment
滚动:
googleMap.getUiSettings().setScrollGesturesEnabled(false);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.