Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13991] Android: Google maps v2 module Android 2.3.x map blur issue

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionWon't Fix
Resolution Date2013-10-17T18:30:36.000+0000
Affected Version/sRelease 3.1.0
Fix Version/s2013 Sprint 21, 2013 Sprint 21 API
ComponentsAndroid
Labelsgoogle, map, module, triage, v2
Reporterjason hu
AssigneeIngo Muschenetz
Created2013-03-04T04:12:29.000+0000
Updated2017-03-30T20:53:58.000+0000

Description

I tested the new map in galaxy note 2 with 4.1.2, the map shows correctly, when I tried it in nexus S with 2.3.6, the map is blurred, even though it still reacts to click and zoom. I also tried it with Motorola Atrix 4G, it has the same blur issue

Additional details

Map Module 2.1.0 on TiSDK 3.1.0.GA

Screenshot

https://github.com/douma/android/blob/master/device-2013-05-07-113122.png

device logs

https://github.com/douma/android/blob/master/android_2.3.3_maps_log.txt

tiapp.xml

https://github.com/douma/android/blob/master/tiapp.xml

To reproduce

To reproduce just require Map module and attempt to display a map object.
var mapObject = require("ti.map");
var map = mapObject.createView({
            width:Ti.UI.FILL,
            height:Ti.UI.FILL,
            annotations:annotations,
            userLocation:true,
            regionFit:true,
            mapType:mapObject.NORMAL_TYPE
        });

Reproducible on

Samsung galaxy S2 and most of Android 2.3.3 devices

Not reproducible on

Droid Razr 2.3.5 It works fine on Android > 4.

Attachments

FileDateSize
modal_on_4.0.4.png2013-06-13T23:48:25.000+000030551
modal_on2.3.4.png2013-06-13T23:48:25.000+0000497182
modal_on4.2.2.png2013-06-13T23:48:25.000+00001964550

Comments

  1. Carter Lathrop 2013-03-04

    Hello Jason, would you mind providing a test case that shows this bug so that we may further review the problem? We need test cases in order to ensure we are reproducing the same problem that you are experiencing. This will lead to a much quicker resolution time. Any questions on how to report a JIRA can be answered here: https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report Thank you Carter
  2. jason hu 2013-03-04

    even a dummy empty map will show as blurred on the 2.3.6 device. All I did was trying your own sample code in your just released module's doc. I don't see a real need for me to paste that sample here. The original doc is at http://docs.appcelerator.com/titanium/3.0/#!/guide/Google_Maps_v2_for_Android
  3. Carter Lathrop 2013-03-04

    Thanks jason, will review.
  4. Michael Williams 2013-05-05

    I can confirm this issue. Works fine on android 4, but shows blurry map on android 2. Please see this topic on the forum, with an image: http://developer.appcelerator.com/question/151960/android-google-maps-v2-shows-blurry-image-on-android-233 This issue is very urgent, since 40% of the users use Android < 4 and Google does not support google maps v1 anymore for new apps.
  5. Michael Williams 2013-05-13

    Is there any news on this?
  6. Eduardo Gomez 2013-05-22

    [Moved to Description]
  7. Tyler Reid 2013-05-22

    Confirmed on Samsung Galaxy S 1.
  8. Djamel ZAHAL 2013-05-24

    Any news for this bug ? I have this bug on my Samsung Galaxy S2 and i should publish the app :s I used sdk 3.1 and maps V2, android version 2.3.4 thanks
  9. Jônatas dos Santos Correia 2013-05-31

    This is really critical as Michael Willian said. I had the same problem here.
  10. Ping Wang 2013-06-03

    Cannot reproduce the issue on Galaxy SII (2.3.6) and HTC Incredible (2.3.4) using 3.1.0 GA and map 2.1.0. Here is the test case I used:
        var win = Ti.UI.createWindow({});
        
        var mapObject = require("ti.map");
        var map = mapObject.createView({
                    width:Ti.UI.FILL,
                    height:Ti.UI.FILL,
                    userLocation:true,
                    regionFit:true,
                    mapType:mapObject.NORMAL_TYPE
                });
        
        win.add(map);
        
        win.open();
        
    I ran the test case with and without WIFI enabled. Sometimes the map was blurry when I moved the map around, but after a while it became clear. It may be due to the network speed.
  11. Jônatas dos Santos Correia 2013-06-03

    I tested on a Motorola Defy Plus MB526 with Android 2.3.5 and the map was always blurry. After this, I updated to Android 4.1.2 in the same device and the map worked fine. Please, try to test on other devices.
  12. Daniel Sefton 2013-06-04

    I tested it with my own maps setup with the following devices: - Galaxy SII (2.3.6) - HTC Incredible (2.3.4) - Nexus One (2.2.2) I couldn't reproduce it either. On Wi-Fi, the maps are crystal clear. Some notes about my setup: - Built latest ti.map module with Ti SDK 3.1 and Android API 10 from https://github.com/appcelerator/titanium_modules - Enabled "Google Maps Android API v2" and "Google Maps API v2" services and created "Key for Android apps (with certificates)" at https://code.google.com/apis/console/ - Published app with Android SDK 2.3.3 - Tested with Ti SDK 3.1 GA and latest 3.1.1 CI There are a few other reporters watching this issue - please verify the devices you used to reproduce the issue. We unfortunately don't have a Motorola Defy Plus at hand.
  13. Eric Merriman 2013-06-04

    Tried all 2.x devices I could get my hands on, couldn't get the blur. I will try to investigate if it's network or something else, as the map does blur on slower devices as it loads. Could network bandwidth be a factor in this? It seems not in Jônatas' case. Checked with: HTC Incredible 2 (2.3.4) Droid (2.2.3) Galaxy s II (2.3.6)
  14. jason hu 2013-06-04

    I just noticed one thing different in Daniel's post. For V1, I had to publish it with "Google Android sdk 2.3.3", but Daniel mentioned "Published app with Android SDK 2.3.3". I will give it a shot later on my google nexus 2.3.6
  15. martin 2013-06-04

    Confirmed blurred ti.map on Samsung GT-I5800 (2.2) and HUAWEI-U8850 (2.3.5) using Ti SDK 3.1 GA. One interesting thing is if locking the phone with the app in front and the unlocking it again, the map is crystal clear for a split second - then it is blurred again.
  16. Jônatas dos Santos Correia 2013-06-05

    I also tested on a LG Optimus Net Dual P698F with Android 2.3.4, using Ti SDK 3.1 GA and the map was blur too. As Martin said, it happens this thing when we lock and unlock the phone.
  17. Eric Merriman 2013-06-07

    With my production developer key I am getting empty grey map views when trying to package. I refreshed my key and tried the new one, but this still failed. We will continue to investigate. Are others building for device or packaging then installing?
  18. jason hu 2013-06-09

    Is it possible to use the google map v1 in 3.1.0GA sdk? Not sure how to get the v1 module and its compatibility with 3.1.0GA sdk. If that's possible, I can just use v1 with the old android devices.
  19. Michael Williams 2013-06-10

    Jason, this is not possible since you cannot create a map v1 key for new apps any more. If you already have a v1 key, then you are still able to use it, to my knowledge also in 3.1.0GA. 3.1.0GA does not support v2 maps by default through Ti.MAP.createView, although it says so in the release info.
  20. Djamel ZAHAL 2013-06-13

    Any new for this bug ?
  21. Djamel ZAHAL 2013-06-13

    i solved this bug in my phone. the window that contains my map was modal. now, it is not and the map is clear :)
  22. Eric Merriman 2013-06-13

    Bravo Zahal. This is the key. We are able to reproduce. More detail to follow.
  23. Olga Romero 2013-06-13

    Thanks Zahal, I used Droid3 Android version:2.3.4 and was able to reproduse the issue by adding modal window.
  24. Djamel ZAHAL 2013-06-13

    cool :) im curious to see if the bug was due to that on all phones...
  25. Olga Romero 2013-06-13

    I included screenshots for different devices with modal window added.
  26. Hieu Pham 2013-10-17

    Closing issue as won't fix. "modal" property won't be supported with map v2.
  27. Ping Wang 2013-10-17

    Map v2 uses SurfaceView to render the map. Based on the [doc](http://developer.android.com/reference/android/view/SurfaceView.html), {quote} The surface is Z ordered so that it is behind the window holding its SurfaceView; the SurfaceView punches a hole in its window to allow its surface to be displayed. {quote} the map is rendered behind the window. The "modal" property of the window uses the flag [FLAG_BLUR_BEHIND](http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_BLUR_BEHIND). The effect of this flag is similar to adding a blurring filter so everything behind the window will be blurred. Therefore, when adding a map to a modal window, the map which is behind the window will also become blurred.
  28. Michael Williams 2013-10-18

    @Ping, what an amazing feature... who ever came up with it...
  29. jason hu 2013-11-07

    this kind of explained why taking away "modal" property made the blurry go away
  30. Lee Morris 2017-03-30

    Closing ticket as "Won't Fix". There has been no update for a while. If there is any problem, please open a new ticket.

JSON Source