[TIMOB-19543] Map Annotation: set pinColor, image, customView on Android
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 4.1.1 |
Fix Version/s | n/a |
Components | Android |
Labels | TCSupportTriage |
Reporter | Manuel Lehner |
Assignee | Unknown |
Created | 2014-09-24T08:50:56.000+0000 |
Updated | 2018-02-28T19:55:57.000+0000 |
Description
The docs for Modules.Map.Annotation should be updated with an information about this.
You can't change pinColor, image and customView after the Annotation is added to the map according to this comment:
https://github.com/appcelerator-modules/ti.map/blob/stable/android/src/ti/map/AnnotationProxy.java#L190
Q&A: http://developer.appcelerator.com/question/177904/timap-annotationsetpincolor-on-android-is-not-working
Hey [~manuellehner], I'd like to schedule this ticket and I remember that I already added at least the "image" property in latest versions of ti.map Android already. Along with that, using a customView can be achieved by using
myView.toImage()
and pass the result (tested). Finally, I'm sure Google offers a way to set the pin-color, so we would look into that one if you can confirm. Thanks!