{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-android-sdk/issues/785","labels_url":"https://api.github.com/repos/mapbox/mapbox-android-sdk/issues/785/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-android-sdk/issues/785/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-android-sdk/issues/785/events","html_url":"https://github.com/mapbox/mapbox-android-sdk/issues/785","id":90993728,"number":785,"title":"Offline map loads but it does not show up","user":{"login":"forty1","id":8059910,"avatar_url":"https://avatars.githubusercontent.com/u/8059910?v=3","gravatar_id":"","url":"https://api.github.com/users/forty1","html_url":"https://github.com/forty1","followers_url":"https://api.github.com/users/forty1/followers","following_url":"https://api.github.com/users/forty1/following{/other_user}","gists_url":"https://api.github.com/users/forty1/gists{/gist_id}","starred_url":"https://api.github.com/users/forty1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forty1/subscriptions","organizations_url":"https://api.github.com/users/forty1/orgs","repos_url":"https://api.github.com/users/forty1/repos","events_url":"https://api.github.com/users/forty1/events{/privacy}","received_events_url":"https://api.github.com/users/forty1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-25T15:20:24Z","updated_at":"2015-07-15T11:41:10Z","closed_at":null,"body":"I am trying to save ond open a map. I save the map with the first start of the Application and it shows me the map in the mapView. After that i load it by OfflineMapDownloader. But the map does not show up after the second time and i have no idea what the problem is. \r\n\r\nThats my code:\r\n\r\nonCreate:\r\n\r\n        mv = (MapView) findViewById(R.id.mapview);\r\n\tmv.setMinZoomLevel(16);\r\n        mv.setMaxZoomLevel(27);\r\n        mv.setCenter(new LatLng(48.770518, 9.170072));\r\n        mv.setZoom(19);\r\n        currentMap = getString(R.string.streetMapId);\r\n\r\n        if(!openMapFromStorage()) {\r\n            saveMap();\r\n        }\r\n\r\n        mv.setOnTilesLoadedListener(new TilesLoadedListener() {\r\n            @Override\r\n            public boolean onTilesLoaded() {\r\n                Log.d(\"TEEEEEEST\", \"onTilesLoaded\");\r\n                Log.d(\"TEEEEEEST\",\"getMinZoomLevel: \" + mv.getMinZoomLevel());\r\n                Log.d(\"TEEEEEEST\",\"getMaxZoomLevel: \" + mv.getMaxZoomLevel());\r\n                Log.d(\"TEEEEEEST\",\"getZoomLevel: \" + mv.getZoomLevel());\r\n                Log.d(\"TEEEEEEST\",\"getCenterCoordinate: \" + mv.getCenter());\r\n                return false;\r\n            }\r\n\r\n            @Override\r\n            public boolean onTilesLoadStarted() {\r\n                Log.d(\"TEEEEEEST\", \"onTilesLoadStarted\");\r\n                return false;\r\n            }\r\n        });\r\n\r\n\r\nsave and open function:\r\n\r\n        private boolean openMapFromStorage(){\r\n        boolean result;\r\n        OfflineMapDownloader offlineMapDownloader = OfflineMapDownloader.getOfflineMapDownloader(this);\r\n\r\n        ArrayList<OfflineMapDatabase> offlineMapDatabases = offlineMapDownloader.getMutableOfflineMapDatabases();\r\n        if (offlineMapDatabases != null && offlineMapDatabases.size() > 0) {\r\n            result = true;\r\n            OfflineMapDatabase db = offlineMapDatabases.get(0);\r\n            Toast.makeText(this, String.format(\"openMapFromStorage\", \"Will load MapID = '%s'\", db.getMapID()), Toast.LENGTH_SHORT).show();\r\n\r\n            OfflineMapTileProvider tp = new OfflineMapTileProvider(this, db);\r\n            TilesOverlay offlineMapOverlay = new TilesOverlay(tp);\r\n            mv.addOverlay(offlineMapOverlay);\r\n            mv.setCenter(new LatLng(48.770518, 9.170072));\r\n            mv.setZoom(19);\r\n        } else {\r\n            result = false;\r\n            Toast.makeText(this, \"No Offline Maps available.\", Toast.LENGTH_LONG).show();\r\n        }\r\n\r\n        return result;\r\n    }\r\n\r\n    private void saveMap() {\r\n        offlineMapDownloader = OfflineMapDownloader.getOfflineMapDownloader(this);\r\n        BoundingBox boundingBox = new BoundingBox(\r\n                new LatLng(48.772289, 9.174975), //new LatLng(11.9425459, 79.8371499),\r\n                new LatLng(48.769228, 9.167229)//new LatLng(11.9211683, 79.81972789999999)\r\n        );\r\n        CoordinateSpan span = new CoordinateSpan(boundingBox.getLatitudeSpan(), boundingBox.getLongitudeSpan());\r\n        CoordinateRegion coordinateRegion = new CoordinateRegion(mv.getCenter(), span);\r\n        offlineMapDownloader.beginDownloadingMapID(\"mapbox.streets\", coordinateRegion, 19, 19, false, false);\r\n        offlineMapDownloader.addOfflineMapDownloaderListener(this);\r\n\r\n    }\r\n\r\n\r\nit seems to safe and to load all files but the mapView is gray!\r\n\r\nMy mapbox-version: 'com.mapbox.mapboxsdk:mapbox-android-sdk:0.7.4@aar'\r\nMy  mapbox:accessToken=\"@string/testAccessToken\"/> is also in the XML.\r\n\r\nThat are the only errors during the installation (first start) and loading :\r\n\r\n06-25 17:21:03.591    9216-9216/com.mapbox.mapboxandroiddemo E/﹕ Device driver API match\r\n    Device driver API version: 23\r\n    User space API version: 23\r\n06-25 17:21:03.591    9216-9216/com.mapbox.mapboxandroiddemo E/﹕ mali: REVISION=Linux-r3p2-01rel3 BUILD_DATE=Fri Mar 21 13:52:50 KST 2014\r\n\r\nI hope you have an idea what the problem could be.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-android-sdk/issues/comments/121588288","html_url":"https://github.com/mapbox/mapbox-android-sdk/issues/785#issuecomment-121588288","issue_url":"https://api.github.com/repos/mapbox/mapbox-android-sdk/issues/785","id":121588288,"user":{"login":"BharathMG","id":977859,"avatar_url":"https://avatars.githubusercontent.com/u/977859?v=3","gravatar_id":"","url":"https://api.github.com/users/BharathMG","html_url":"https://github.com/BharathMG","followers_url":"https://api.github.com/users/BharathMG/followers","following_url":"https://api.github.com/users/BharathMG/following{/other_user}","gists_url":"https://api.github.com/users/BharathMG/gists{/gist_id}","starred_url":"https://api.github.com/users/BharathMG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BharathMG/subscriptions","organizations_url":"https://api.github.com/users/BharathMG/orgs","repos_url":"https://api.github.com/users/BharathMG/repos","events_url":"https://api.github.com/users/BharathMG/events{/privacy}","received_events_url":"https://api.github.com/users/BharathMG/received_events","type":"User","site_admin":false},"created_at":"2015-07-15T11:41:10Z","updated_at":"2015-07-15T11:41:10Z","body":"@forty1  May be your mapId is different from \"mapbox.streets\"?"}}