[TIMOB-16502] Android : Particular images in annotations do not render on the mapView - reopen
GitHub Issue | n/a |
Type | Bug |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 3.2.1 |
Fix Version/s | n/a |
Components | Android |
Labels | alpha, annotation, image, mapView, png, transparency |
Reporter | Alfredo Schiappa |
Assignee | Unknown |
Created | 2014-02-24T14:11:21.000+0000 |
Updated | 2018-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
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
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.
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.
A simple test case using two annotations RES.png (RES_HIDDEN) and RES0.png
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)
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.
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
No, in origin the image was named just RES.png I renamed it to make things more clear.
I'm having the exact same issue. I can also provide test images where needed. Is there any progress on this ticket?