Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-2546

Android: state of annotations added/removed prior to view creation is not reflected when view is created

    Details

      Description

      {html}<div><p>For example, <code>addAnnotation(annotation)</code> 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
      <code>addAnnotation</code> prior to creating the view in
      iPhone.</p>
      <p>WORKAROUND: If you're wanting to set/remove annotations prior to
      adding the view (i.e., prior to <code>win.add(mapview)</code>, keep
      them in an array and then pass them as the <code>annotations</code>
      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 <code>win.add(mapview)</code> and
      <code>win.open()</code> before <code>.addAnnotation</code>. Because
      <code>.addAnnotation</code> (and <code>.removeAnnotation</code>)
      will work if ....</p>
      <ul>
      <li>the window is open</li>
      <li>the mapview has been added to the window already.</li>
      </ul></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              billdawson Bill Dawson
              Reporter:
              billdawson Bill Dawson
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-2226
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code