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

Android: support the 'longpress' event on MapView

    Details

      Description

      Actual Result
      No results. The event is only fired the first time you touch the screen when window is opened. It states in version 1.8.0.1 this feature was available. But in version 2.1.3, 2.1.4 and the new 3.0 SDK this feature is not available.

      Expected Result
      Being able to detect longpress event on a mapview and return the appropriate parameters.

      Notes
      When you run this on a iOS device it works.

      Test case

      var mapView = Ti.Map.createView({
      	mapType : Ti.Map.STANDARD_TYPE,
      	animate : true,
      	regionFit : true,
      	region : {
      		latitudeDelta : 0.02,
      		longitudeDelta : 0.02,
      	},
      	userLocation : true,
      	width : '100%',
      	height : '100%',
      	top : 0,
      });
       
      // open a single window
      var window = Ti.UI.createWindow({
      	backgroundColor : 'white'
      });
       
      mapView.addEventListener('longpress', function(e) {
      	alert(e);
      });
       
      window.add(mapView);
      window.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ayeung Allen Yeung
                Reporter:
                qoerz Carlo Hermus
                Reviewer:
                Ping Wang
              • Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration