[TIMOB-2546] Android: state of annotations added/removed prior to view creation is not reflected when view is created
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:59:24.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.6.0 M05 |
Components | Android |
Labels | android, defect, mapview, release-1.6.0 |
Reporter | Bill Dawson |
Assignee | Bill Dawson |
Created | 2011-04-15T03:22:25.000+0000 |
Updated | 2011-04-17T01:59:24.000+0000 |
Description
For example, addAnnotation(annotation)
only does
something useful if the view has already been created. This may be
the case with other properties as well, so whoever works on this
should look for that. Also check if it works to
addAnnotation
prior to creating the view in
iPhone.
WORKAROUND: If you're wanting to set/remove annotations prior to
adding the view (i.e., prior to win.add(mapview)
, keep
them in an array and then pass them as the annotations
creation property when you create the view. Better yet, if you're
experiencing this problem, it might be just a question of how to
order your code: call win.add(mapview)
and
win.open()
before .addAnnotation
. Because
.addAnnotation
(and .removeAnnotation
)
will work if ....
- the window is open
- the mapview has been added to the window already.
Attachments
File | Date | Size |
---|---|---|
app.js | 2011-04-15T03:22:25.000+0000 | 1055 |