Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16623] iOS: Some annotations won't show when removing and re-adding if the annotations has a customView

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionDuplicate
Resolution Date2016-03-13T14:48:52.000+0000
Affected Version/sRelease 3.2.2
Fix Version/sn/a
ComponentsiOS
Labelsios, ti.map
ReporterJimmie Jönsson
AssigneeChee Kiat Ng
Created2014-03-12T15:56:22.000+0000
Updated2016-03-13T14:48:52.000+0000

Description

I store all my annotations in an array. When removing the array (mapview.removeAnnotations(annotationsArr)) they all disappear, but when re-adding them (mapview.addAnnotations(annotationsArr)), only a few re-appear. They still seem to be there, since they are still "clickable", but they won't show. This only happens when using the customView property in annotations. When not using the customView, and only using the standard pins, there seems to be no problem. app.js and a simple "H" image attached. Add the "busStop.png" image to Resources\images Testcase: Using customView: 1. Run the app. 2. Press the Hide/Show annotations button. (The annotations disappear) 3. Press the Hide/Show annotations button again. (Only some annotations reappear) Using standard pins: 1. Run the app. 2. Press the Hide/Show annotations button. (The annotations disappear) 3. Press the Hide/Show annotations button. (The annotations reappear) The problem only seem to exist on iOS, using the same code works on android (Titanium SDK 3.1.3.GA). Thanks.

Attachments

FileDateSize
app.js2014-03-12T15:56:22.000+00001562
busStop.png2014-03-12T15:56:22.000+00002165

Comments

  1. Ritu Agrawal 2014-03-13

    Moving this ticket to engineering as I can reproduce this issue with the provided test case on iOS simulator. Standard pin works fine but custom view does not.
  2. Hans Knöchel 2016-03-13

JSON Source