[TIMOB-20620] Android: Annotation.pincolor can't be changed if annotation added to mapView.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-04-13T05:51:01.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | annotation |
Reporter | CREATIVE KAIZEN |
Assignee | Srikanth Sombhatla |
Created | 2016-03-21T21:23:04.000+0000 |
Updated | 2017-03-31T22:04:43.000+0000 |
Description
I am not sure if it is a bug or it needs improvement.
If annotation is created than changing it's pincolor by
annotation.pincolor = mapModule.ANNOTATION_AZURE;
//or
annotation.setPincolor = mapModule.ANNOTATION_AZURE;
won't change annotation color unless it is removed and added again to mapView.
Attachments
File | Date | Size |
---|---|---|
annotation1.png | 2016-03-22T19:26:59.000+0000 | 355711 |
annotation2.png | 2016-03-22T19:26:58.000+0000 | 353788 |
app.js | 2016-04-11T07:46:23.000+0000 | 883 |
Hello, In you sample code you change color from AZURE to AZURE so there is no change of the color. Try to change to different color. The code you wrote works. Probably it is caused by the thing that during the execution of these lines annotation is not yet visible. Please try this code:
I am attaching screenshots as a proof - view changes its color but annotation doesn't.
PR: https://github.com/appcelerator-modules/ti.map/pull/156 Use [^app.js] for testing.
PR approved and merged.
[~ssombhatla] could you add a release binary to the Github page as well?
Closing ticket as fixed, if there are any problems, please file a new ticket.