mapbox-gl-native icon indicating copy to clipboard operation
mapbox-gl-native copied to clipboard

Random gray screen in onMapReady

Open lcerveau opened this issue 10 years ago • 1 comments

When calling mapboxMap.animateCamera(CameraUpdateFactory.newLatLngZoom(LATLNG, 18f)) in the onMapReady method, there can be a random gray screen. It can however be workarounded using mapboxMap.setCameraPosition(new CameraPosition.Builder().target(LATLNG).zoom(18).build());

Platform: Android Mapbox SDK version:

lcerveau avatar Nov 14 '16 22:11 lcerveau

animateCamera has a default animation of 3 second. If you want to instantly move the camera instead of animating or easing, you need to use setCameraPosition or moveCamera. Please reach out through our contact page if you have any additional questions.

cammace avatar Nov 15 '16 17:11 cammace