Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Fixing bug with disappearing map overlay after zoom in Android.
public class ExamplaryMapActivity extends RoboMapActivity {
private MapView mapView;
protected void onCreate(Bundle bundle) {
enableHWAccel(mapView, false);
private static void enableHWAccel(MapView mapView, boolean enable) {
int type = enable ? View.LAYER_TYPE_HARDWARE : View.LAYER_TYPE_SOFTWARE;
mapView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment