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

IOS: Clicking on annotation title & subtitle gives click source as rightbutton

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Duplicate
    • Affects Version/s: Release 3.5.0
    • Fix Version/s: None
    • Component/s: iOS
    • Labels:
    • Environment:

      Environment:
      Appc Studio : 3.4.1.201410281743
      Ti SDK : 3.5.0.v20141219075715
      CLI : 3.4.1
      Alloy : 1.5.1 GA
      Code Processor : 1.1.1
      MAC Yosemite : 10.10
      Iphone 5S - 8.0.2

      Description

      This is not a regression.
      SDK MAP MODULE RESULT
      3.5.0.v20141219075715 2.2.0 Fail
      3.4.1 2.0.6 Fail
      3.5.0.v20141219075715 2.0.6 Fail
      3.4.1 2.2.0 Fail
      Description:

      1. Run the following code in your app.js:

      var MapModule = require('ti.map');
       
      var win = Ti.UI.createWindow({});
       
      var atlantaParams = {
      	latitude:33.74511,
      	longitude:-84.38993,
      	title:"Atlanta, GA",
      	subtitle:'Atlanta Braves Stadium\nfoo',
      	animate:true,
      	rightButton: Titanium.UI.iPhone.SystemButton.DISCLOSURE,
      	myid:3 // CUSTOM ATTRIBUTE THAT IS PASSED INTO EVENT OBJECTS
      };
       
      atlantaParams.pincolor = MapModule.ANNOTATION_PURPLE;
       
      var atlanta = MapModule.createAnnotation(atlantaParams);
       
      var mapview = MapModule.createView({
      	mapType: MapModule.NORMAL_TYPE,
      	region:{latitude:33.74511, longitude:-84.38993, latitudeDelta:0.5, longitudeDelta:0.5},
      	animate:true,
      	regionFit:true,
      	userLocation:true,
      	annotations:[atlanta]
      });
       
      mapview.addEventListener("click", function(e) {
      	var info = '\n';
      	
      	info += 'type: ' + e.type + '\n';
      	info += 'clicksource: ' + e.clicksource + '\n';
      	info += 'title: ' + e.title + '\n';
      	info += 'index: ' + e.index + '\n';
      	info += 'annotation: ' + e.annotation + '\n';
      	info += 'map: ' + e.map + '\n';
      	info += 'source: ' + e.source + '\n';
      	
      	Ti.API.info(info);
      	alert(info);
      });
       
      mapview.addAnnotation(atlanta);
       
      win.add(mapview);
      win.open();
      

      2. Launch the app.
      3. Click on the annotation pin.
      4. Click on the annotation title & subtitle.

      Actual Result:

      1. The click source for both annotation title & subtitle is shown as rightbutton in the alert.

      Expected result:

      1. The click source when clicked on annotation title & subtitle should not be rightbutton.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                emerriman Eric Merriman
                Reporter:
                lchoudhary Lokesh Choudhary
                Tester:
                Lokesh Choudhary
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code