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.
Closing ticket as duplicate.