Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16502] Android : Particular images in annotations do not render on the mapView - reopen

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.2.1
Fix Version/sn/a
ComponentsAndroid
Labelsalpha, annotation, image, mapView, png, transparency
ReporterAlfredo Schiappa
AssigneeUnknown
Created2014-02-24T14:11:21.000+0000
Updated2018-02-28T20:03:59.000+0000

Description

It seems that some PNG images 256-color depth (8bit) with transparency (chunk tRNS set with 1 entry) are not shown as annotation icon, i.e. the annotation is created and set in map (it displays the tooltip if tapped), but it is invisible. The same image converted to 16million colors depth (24bit) is displayed correctly. The same image kept at 256-color depth (8bit) with removed transparency (chunk tRNS removed from png) is displayed correctly (though, obviously, without transparency)

Attachments

FileDateSize
ATest.zip2014-02-25T10:26:57.000+0000654716
RES_HIDDEN.png2014-02-24T14:27:11.000+00004380
RES0.png2014-02-24T14:27:11.000+00004367
RES6.png2014-02-24T14:27:11.000+00004268

Comments

  1. Alfredo Schiappa 2014-02-24

    RES_HIDDEN is 8bit (256 color depth) with transparency: when used for image property on annotation it results in an invisible annotation icon RES0 is 8bit (256 color depth) without transparency: when used for image property on annotation it results in a visible annotation icon (without transparency) RES6 is 24bit (16million color depth) with transparency: when used for image property on annotation it results in a visible annotation icon as expected
  2. Ritu Agrawal 2014-02-24

    Thanks for providing the images. I would appreciate if you can provide a runnable test case so that we can try to reproduce the issue in-house.
  3. Alfredo Schiappa 2014-02-24

    Hi, the problem is present in this app for android https://play.google.com/store/apps/details?id=it.regione.lazio.luceverde : when you expand (zoom) clustered annotations, you can see that some annotations are invisible (but tap-ping around the map will still show the annotation tooltip). Anyway, I will extract a simpler test case and source code tomorrow.
  4. Alfredo Schiappa 2014-02-25

    A simple test case using two annotations RES.png (RES_HIDDEN) and RES0.png
  5. Alfredo Schiappa 2014-02-25

    Hi, I've attached a simple test case (atest.zip) with map and two annotations, the first which will result to be 'invisible' and the second which will result to be visible. Tested on Android (google Nexus 5 device)
  6. Ritu Agrawal 2014-02-25

    Moving this ticket to engineering as I can reproduce this issue on Nexus 5 device. Please use attached file ATest.zip file for a simple test case.
  7. Manuel Lehner 2014-03-11

    I just discovered that an underscore in the image name also causes the annotation to become invisible, e.g. pin_selected.png. Didn't tried your test case but maybe it's the same issue with your RES_HIDDEN.png
  8. Alfredo Schiappa 2014-03-11

    No, in origin the image was named just RES.png I renamed it to make things more clear.
  9. Rene Pot 2016-11-28

    I'm having the exact same issue. I can also provide test images where needed. Is there any progress on this ticket?

JSON Source