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

Android: MapView not updating regions

    Details

      Description

      {html}<div><p>The mapview (as of 1.4.2 - 1.5.0) no longer updates it's region
      setting based on the movement of the map.</p>
      <p>Reproduction code:</p>
      <pre>
      <code class="javascript">var win = Titanium.UI.createWindow({ title: 'WeedMaps', backgroundColor:'#fff', navBarHidden: true });

      var mapview = Titanium.Map.createView({
      mapType: Titanium.Map.STANDARD_TYPE,
      region: {latitude:33.74511, longitude:-84.38993, latitudeDelta:0.01, longitudeDelta:0.01},
      animate: true,
      regionFit: true,
      userLocation: false
      });

      win.add(mapview);
      win.open();</code>
      </pre>
      <p>Expected result: Swipe on the map, and the map loads the new
      regions into view.<br>
      End result: Map does not update once instanciated.</p>
      <p>I was able to work around this, but only with the help of
      getCurrentLocation(), utilizing GPS/Network location. This then
      allowed me to scroll the map and it updates wonderfully, but this
      is not useful since the map that is to be displayed has nothing to
      do with location awareness.</p>
      <p>I do not know if this was the intended use for the MapView, or
      if something needs to be calibrated via regionChanged event on the
      user's end...</p>
      <p>Andrew</p>
      <p>(Attached is an imaged once the mapview is scrolled and zoomed
      out; no update taking place).</p></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              opiecyrus Opie Cyrus
              Reporter:
              andrewheebner Andrew Heebner
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration