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

Android: Map inside ScrollableView doesn't scroll properly

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Android
    • Labels:

      Description

      When a map view is put inside a Scrollable view, when we scroll the map, sometimes the ScrollableView takes priority. This is the case for both map v1 and v2 implementation.

      Testing steps for map v2.
      1.

      var window = Titanium.UI.createWindow({});
      window.open();
        
       
        
      var MapModule = require('ti.map');
         
      var map = MapModule.createView({
          userLocation: true,
          mapType: MapModule.NORMAL_TYPE,
          animate: true,
          region: {latitude: -33.87365, longitude: 151.20689, latitudeDelta: 0.1, longitudeDelta: 0.1 }, 
      });
        
      var anno = MapModule.createAnnotation({
                      latitude: -33.86665,
                      longitude: 151.20689,
                      title: "Test Annotation",
                      subtitle: "Test Point subtitle",
                      animate: true,
      });
       
      anno.addEventListener('click', function(e) {
          Ti.API.info("Annotation popup clicked");
      });
       
      map.addAnnotations([anno]); 
        
      var view = Ti.UI.createScrollableView({views: [map], showPagingControl: true});
      window.add(view);
      


      2. Scroll around with the map view and you'll notice that sometimes the ScrollableView will take priority.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hpham Hieu Pham
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

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

                  Git Integration