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

Ti.Map MapView setLocation zooms out to the maximum on Android unless latitudeDelta longitudeDelta are present

    Details

      Description

      function setLocation (e) {
      Ti.API.info("Annotation " + e.title + " clicked, id: " + e.annotation.myid);
      $.mapview.setLocation(

      { latitude: 32.8245525, longitude: -117.0951632, animate: true, }

      );
      }

      Calling that function will center the map on the specified location but zoom the map out to the maximum. The documentation makes it seem like latitudeDelta and longitudeDelta are optional.

      I just want to center the map, not change the zoom level. I'm not aware of any workarounds on Android.

      GitHub repo illustrating problem: https://github.com/davidfischer/setLocationBug

      The above application can be built for iOS and Android. Clicking the annotation will center and zoom the map out on Android. It only centers the map on iOS.

      Titanium: 3.3.0.GA
      Platform: 4.4.2
      API: 19
      Google APIs x86

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              davidfischer David Fischer
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

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

                  Git Source Code