[TIMOB-17884] Map: Android - Google Maps v2 map tiles not showing when scrolling/zooming
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-10-24T22:34:54.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 3.4.1, Release 3.4.2, Release 3.5.0, Release 4.0.0 |
Components | Android |
Labels | TCSupport, api, cache, google, leak, map, memory, module_androidmapv2, qe-testadded, tiles, v2 |
Reporter | Bernhard Dengler |
Assignee | Hieu Pham |
Created | 2014-07-25T09:06:03.000+0000 |
Updated | 2014-12-17T15:00:01.000+0000 |
Description
After starting a map view, everything works fine for a while.
If you do a lot of scrolling and zooming, you don't see any map details any more after a while on some devices (e.g. Samsung Galaxy S4 w Android 4.2.1, Oppo Find 7 w Android 4.4, Google Nexus 7 w Android 4.4 etc.).
* You can still scroll and zoom, but the map stays blurry (street names still appear).
* Switching between satellite and standard view doesn't change the bevhaviour.
* Sometimes the app crashes after heavy zooming and scrolling.
* After clearing the cache (application settings) and restarting the app, the map works fine again for some time. So I assume it's a memory issue.
* In addition some users report that the performance of the map view is, compared to the Google Maps app, worse and the use of internet traffic is higher.
I attached a sample project. You just have to enter your Google API key and adapt the app id.
If you have any questions or need more information feel free to post a comment.
Attachments
File | Date | Size |
---|---|---|
Map Test.zip | 2014-07-25T09:06:03.000+0000 | 2453760 |
There are also some other users reporting the same issue: http://developer.appcelerator.com/question/174865/caching-of-google-map-tiles-android#answer-281124
Were you able to verify this?
Useless: cache clearing, app data clearing Time to time force quit of app helps.
[~bedengler], The sample you posted seems to be adding the Map to a modal Window.
- http://docs.appcelerator.com/titanium/latest/#!/guide/Google_Maps_v2_for_Android-section-36739898_GoogleMapsv2forAndroid-Mapappearsblurry You may want to double check using a smaller sample and see if the issue persist.
Using the suggested code from Eduardo's comment directly above this, I was able to reproduce the issue on an HTC One M7 running 4.2.2 compiled with 3.3.0. TESTING ENVIRONMENT: Titanium SDK: 3.3.0.GA Titanium CLI: 3.3.0 OS X Version: 10.9.3 Android Version: 4.2.2 Map Module 2.1.4 STEPS TO TEST: Create a simple project. Update project using sample test code Add Map module 2.1.4 in tiapp.xml Run on android device Zoom in/out repeatedly, eventually map fails to load new data
Hey guys, please clone tickets and then move them to the correct project. We keep getting emails of community users loosing their tickets. If you want to make a community facing comment please make it on TC-4584 - Seth
Tried on 2 devices 1. HTC One 2. Samsung galaxy S5 Was able to reproduce the issue on the HTC one easily. The issue could not be seen on galaxy S5. Might be samsung devices take a long time to show the issue. Environment: Titanium SDK: 3.3.0.GA Titanium CLI: 3.3.0 OS X Version: 10.9.3 Android Version: 4.2.2 (HTC One) , 4.4.2(Samsung Galaxy S5) Map Module 2.1.4
Investigate fragment lifecycle.
Not yet, unfortunately. However, you can I think resolve that other ticket since I've now moved this one into TIMODOPEN.
ti.map module PR: https://github.com/appcelerator-modules/ti.map/pull/67 master PR: https://github.com/appcelerator/titanium_mobile/pull/6256 3_4_1 PR: https://github.com/appcelerator/titanium_mobile/pull/6273 3_4_X PR: https://github.com/appcelerator/titanium_mobile/pull/6274
Seems to be solved, sounds good, thank you! I appreciate your work
Closing ticket as fixed. Verified that with the new ti.map module (2.2.1), tiles will be loaded after scrolling and zooming a lot. Tested on: Appcelerator Studio, build: 3.4.1.201410191611 SDK build: 3.4.1.v20141027160917 CLI: 3.4.1-dev Alloy: 1.5.1 Android SDK Build-tools: 20 Android SDK Platform-tools: 21 Android SDK Tools: 23.0.5 Device: HTC One (4.2.2), Samsung Galaxy S4 (4.4.2)
I've tried it now with ti.map plugin version 2.2.1 and Ti Studio V 3.4.1 (btw: it was really hard to find ti.map version 2.2.1 as the official link from marketplace still points to 2.1.4). Basically it's working except for the satelite/hybrid view. If you're in satelite/hybrid view and scrolling a lot, after some time the pictures stay blurred although the streets and streetnames sharpen. So there's still something not working perfectly. "Normal" mode works fine and when switching to "normal" mode (when the satelite view stays blurry), normal mode still works fine. Tested on Samsung Galaxy S3 with Android 4.4.4 and Google Nexus 7 with Android 5.0.