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

iOS6: TiMaps scrolling is slow on iPhone 4

    Details

      Description

      TiMap scrolling on iPhone4 is slower and sluggish as compared to native iOS maps scrolling.

      Steps to reproduce

      1. Run the below sample code in your project's app.js or KitchenSink's map example.
      2. Open the application.
      3. Scroll through the map and you can see the slowness in the scroll performance as compared to the native iOS maps.

      var win = Ti.UI.createWindow();
       
      var mountainView = Titanium.Map.createAnnotation({
          latitude:37.390749,
          longitude:-122.081651,
          title:"Appcelerator Headquarters",
          subtitle:'Mountain View, CA',
          pincolor:Titanium.Map.ANNOTATION_RED,
          animate:true,
          leftButton: '../images/appcelerator_small.png',
          myid:1 // Custom property to uniquely identify this annotation.
      });
       
      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:true,
          annotations:[mountainView]
      });
       
      win.add(mapview);
      // Handle click events on any annotations on this map.
      mapview.addEventListener('click', function(evt) {
       
          Ti.API.info("Annotation " + evt.title + " clicked, id: " + evt.annotation.myid);
       
          // Check for all of the possible names that clicksouce
          // can report for the left button/view.
          if (evt.clicksource == 'leftButton' || evt.clicksource == 'leftPane' ||
              evt.clicksource == 'leftView') {
              Ti.API.info("Annotation " + evt.title + ", left button clicked.");
          }
      });
      win.open();
      
      

        Attachments

          Activity

            People

            • Assignee:
              mstepanov Max Stepanov
              Reporter:
              nsharma Nikhil Sharma
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code