@Override
    protected void onResume() {
        super.onResume();
        Log.d("NewMap: onResume");

        resumeTileLayer();
        resumeRoute(Settings.removeFromRouteOnLog());
        if (tracks != null) {
            tracks.resumeAllTracks(this::resumeTrack);
        }
        mapView.getModel().mapViewPosition.addObserver(this);
        MapUtils.updateFilterBar(this, mapOptions.filterContext);
    }
Get the current map state from the map view if it exists or from the mapStateIntent field otherwise.

@return the current map state as an array of int, or null if no map state is available
main/src/main/java/cgeo/geocaching/maps/mapsforge/v6/NewMap.java