public int getCachesCount() {

        int result = 0;

        if (baseOverlay != null) {
            result += baseOverlay.getCachesCount();
        }
        if (storedOverlay != null) {
            result += storedOverlay.getCachesCount();
        }
        if (liveOverlay != null) {
            result += liveOverlay.getCachesCount();
        }

        return result;
    }
Enables the stored cache layer. No disabling again!

@param mapOptions isStoreEnabled true - enable stored layer, false - leave untouched
main/src/main/java/cgeo/geocaching/maps/mapsforge/v6/caches/CachesBundle.java